Skip to content

Commit

Permalink
Fix var not defined
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Jan 1, 2020
1 parent d175b34 commit bf9f9df
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions htdocs/core/class/interfaces.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,10 @@ public function run_triggers($action, $object, $user, $langs, $conf)
$handle = opendir($newdir);
if (is_resource($handle))
{
$fullpathfiles = array();
while (($file = readdir($handle)) !== false)
{
$reg=array();
if (is_readable($newdir."/".$file) && preg_match('/^interface_([0-9]+)_([^_]+)_(.+)\.class\.php$/i', $file, $reg))
{
$part1 = $reg[1];
Expand Down Expand Up @@ -274,6 +276,7 @@ public function getTriggersList($forcedirtriggers = null)
{
while (($file = readdir($handle)) !== false)
{
$reg = array();
if (is_readable($newdir.'/'.$file) && preg_match('/^interface_([0-9]+)_([^_]+)_(.+)\.class\.php/', $file, $reg))
{
if (preg_match('/\.back$/', $file)) continue;
Expand Down

0 comments on commit bf9f9df

Please sign in to comment.