1
0
Fork 0

Use is_int not intval to return Photo->createFromId back to original version

This commit is contained in:
Hank Grabowski 2022-12-12 12:38:45 -05:00
parent 4e5794c99d
commit a8428264f0

View file

@ -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;