Likely fix for bug #482308

git-svn-id: file:///svn/phpbb/trunk@1388 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Paul S. Owen 2001-11-20 14:48:42 +00:00
parent 143823685e
commit 2cc2ae1eac

View file

@ -72,11 +72,13 @@ while($file = @readdir($dir))
{
if( !@is_dir($phpbb_root_path . $board_config['smilies_path'] . '/' . $file) )
{
if( !is_null(@getimagesize($phpbb_root_path . $board_config['smilies_path'] . '/' . $file)) )
$img_size = @getimagesize($phpbb_root_path . $board_config['smilies_path'] . '/' . $file);
if( $img_size[0] && $img_size[1] )
{
$smiley_images[] = $file;
}
elseif(eregi('.pak$', $file) )
else if( eregi('.pak$', $file) )
{
$smiley_paks[] = $file;
}