diff --git a/lib/jqueryplugins/jquery-file-upload/server/php/UploadHandler.php b/lib/jqueryplugins/jquery-file-upload/server/php/UploadHandler.php index be0abb0119d..16d0a3f06d5 100644 --- a/lib/jqueryplugins/jquery-file-upload/server/php/UploadHandler.php +++ b/lib/jqueryplugins/jquery-file-upload/server/php/UploadHandler.php @@ -483,7 +483,7 @@ protected function gd_set_image_object($file_path, $image) { } protected function gd_destroy_image_object($file_path) { - $image = @$this->image_objects[$file_path]; + $image = (isset($this->image_objects[$file_path])) ? $this->image_objects[$file_path] : null ; return $image && imagedestroy($image); } @@ -692,7 +692,7 @@ protected function imagick_get_image_object($file_path, $no_cache = false) { } protected function imagick_destroy_image_object($file_path) { - $image = @$this->image_objects[$file_path]; + $image = (isset($this->image_objects[$file_path])) ? $this->image_objects[$file_path] : null ; return $image && $image->destroy(); }