diff options
Diffstat (limited to 'admin')
-rw-r--r-- | admin/include/functions.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/admin/include/functions.php b/admin/include/functions.php index 9dcd17ebb..54ec9d8b2 100644 --- a/admin/include/functions.php +++ b/admin/include/functions.php @@ -38,7 +38,8 @@ function is_image( $filename, $create_thumbnail = false ) { global $conf, $tab_ext_create_TN; - if ( is_file( $filename ) ) + if (is_file($filename) + and in_array(get_extension($filename), $conf['picture_ext'])) { $size = getimagesize( $filename ); // $size[2] == 1 means GIF |