projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6bbf999
)
DataObjects/Images.php
author
Alan
<alan@roojs.com>
Wed, 13 Apr 2022 09:31:27 +0000
(17:31 +0800)
committer
Alan
<alan@roojs.com>
Wed, 13 Apr 2022 09:31:27 +0000
(17:31 +0800)
DataObjects/Images.php
patch
|
blob
|
history
diff --git
a/DataObjects/Images.php
b/DataObjects/Images.php
index
74c9051
..
c382d9e
100644
(file)
--- 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);