X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=blobdiff_plain;f=Images.php;h=4d2fd145b07c6d5a7364a0ed0260c19a9847d879;hp=175071c7d7623f8c3ddbec08428776984e59c4fc;hb=refs%2Fheads%2Fwip_edward_T5851_download_old_offer_sheet;hpb=7112f915200eaec78ae5a02dbc5637048fddb73d diff --git a/Images.php b/Images.php index 175071c7..4d2fd145 100644 --- a/Images.php +++ b/Images.php @@ -180,7 +180,7 @@ class Pman_Core_Images extends Pman } $img = DB_DataObjecT::factory('Images'); - print_R($id);exit; + if (!$id || !$img->get($id)) { $this->imgErr("image has been removed or deleted.",$s); }