mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-23 18:11:47 +02:00
Likely fix for bug #482308
git-svn-id: file:///svn/phpbb/trunk@1388 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -72,7 +72,9 @@ while($file = @readdir($dir))
|
|||||||
{
|
{
|
||||||
if( !@is_dir($phpbb_root_path . $board_config['smilies_path'] . '/' . $file) )
|
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;
|
$smiley_images[] = $file;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user