Use is_int not intval to return Photo->createFromId back to original version
This commit is contained in:
parent
4e5794c99d
commit
a8428264f0
|
@ -64,7 +64,7 @@ class Photo extends BaseFactory
|
|||
'backend-class', 'backend-ref', 'id', 'scale'];
|
||||
|
||||
$condition = ['uid' => $uid, 'resource-id' => $photo_id];
|
||||
if (intval($scale)) {
|
||||
if (is_int($scale)) {
|
||||
$fields = array_merge(['data'], $fields);
|
||||
|
||||
$condition['scale'] = $scale;
|
||||
|
|
Loading…
Reference in a new issue