From: Alan Date: Wed, 13 Apr 2022 09:31:27 +0000 (+0800) Subject: DataObjects/Images.php X-Git-Url: http://git.roojs.org/?a=commitdiff_plain;h=ecd5d5e44770e86a9f705f683e452005773810ab;p=Pman.Core DataObjects/Images.php --- diff --git a/DataObjects/Images.php b/DataObjects/Images.php index 74c90517..c382d9e1 100644 --- a/DataObjects/Images.php +++ b/DataObjects/Images.php @@ -537,7 +537,7 @@ class Pman_Core_DataObjects_Images extends DB_DataObject // the size should 200x150 to convert $sizear = preg_split('/(x|c)/', $size); if(empty($sizear[1])){ - $sizear[1] = isset($sizear[1]) ? 0 : ''; // 0x with '0' is a box? why + $sizear[1] = ''; // 0x with '0' is a box? why } $size = implode(strpos($size,'c') > -1 ? 'c' : 'x', $sizear); // print_r($size);