diff --git a/src/Factory/Api/Friendica/Photo.php b/src/Factory/Api/Friendica/Photo.php index 36df12d67..2621a7830 100644 --- a/src/Factory/Api/Friendica/Photo.php +++ b/src/Factory/Api/Friendica/Photo.php @@ -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;