From: Alan Date: Wed, 30 Mar 2022 03:03:44 +0000 (+0800) Subject: missing source image detection X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=e89875ff692e538e8f98ec553729f97b61c97c18 missing source image detection --- diff --git a/Images.php b/Images.php index 039ec024..32859e1a 100644 --- a/Images.php +++ b/Images.php @@ -183,7 +183,7 @@ class Pman_Core_Images extends Pman $img = DB_DataObjecT::factory('Images'); - if (!$id || !$img->get($id)) { + if (!$id || !$img->get($id) || !$img->exists()) { $this->imgErr("image has been removed or deleted.",$s); }