mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 05:50:42 +02:00
make sure we always check for a valid directory handle
git-svn-id: file:///svn/phpbb/trunk@8211 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -637,7 +637,7 @@ parse_css_file = {PARSE_CSS_FILE}
|
||||
}
|
||||
}
|
||||
}
|
||||
@closedir($dp);
|
||||
closedir($dp);
|
||||
}
|
||||
|
||||
unset($installed);
|
||||
@@ -1860,15 +1860,17 @@ parse_css_file = {PARSE_CSS_FILE}
|
||||
|
||||
$imageset_root = "{$phpbb_root_path}styles/{$style_row['imageset_path']}/imageset/";
|
||||
|
||||
$dh = @opendir($imageset_root);
|
||||
while (($fname = readdir($dh)) !== false)
|
||||
if ($dh = @opendir($imageset_root))
|
||||
{
|
||||
if ($fname[0] != '.' && $fname != 'CVS' && is_dir("$imageset_root$fname"))
|
||||
while (($fname = readdir($dh)) !== false)
|
||||
{
|
||||
$files[key($files)]['exclude'] .= ',' . $fname . '/imageset.cfg';
|
||||
if ($fname[0] != '.' && $fname != 'CVS' && is_dir("$imageset_root$fname"))
|
||||
{
|
||||
$files[key($files)]['exclude'] .= ',' . $fname . '/imageset.cfg';
|
||||
}
|
||||
}
|
||||
closedir($dh);
|
||||
}
|
||||
@closedir($dh);
|
||||
|
||||
$imageset_lang = array();
|
||||
|
||||
|
Reference in New Issue
Block a user