diff options
Diffstat (limited to 'includes/image.inc')
-rw-r--r-- | includes/image.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/image.inc b/includes/image.inc index a4cf79b44..cea0be011 100644 --- a/includes/image.inc +++ b/includes/image.inc @@ -89,7 +89,7 @@ function image_get_info($file) { $data = @getimagesize($file); $file_size = @filesize($file); - if (is_array($data)) { + if (isset($data) && is_array($data)) { $extensions = array('1' => 'gif', '2' => 'jpg', '3' => 'png'); $extension = array_key_exists($data[2], $extensions) ? $extensions[$data[2]] : ''; $details = array('width' => $data[0], |