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