diff --git a/include/Photo.php b/include/Photo.php index d26dd1684b..cf0bf29bbe 100644 --- a/include/Photo.php +++ b/include/Photo.php @@ -68,8 +68,9 @@ class Photo { $this->image->destroy(); return; } - if (is_resource($this->image)) + if (is_resource($this->image)) { imagedestroy($this->image); + } } }