Skip to content

Commit

Permalink
[0.85] Prevent Undefined index Notice in fileupload; fix #99
Browse files Browse the repository at this point in the history
  • Loading branch information
orthagh committed Sep 15, 2015
1 parent 36a5994 commit b5bd796
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -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);
}

Expand Down Expand Up @@ -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();
}

Expand Down

0 comments on commit b5bd796

Please sign in to comment.