]> git.mxchange.org Git - friendica.git/commitdiff
Use is_int not intval to return Photo->createFromId back to original version
authorHank Grabowski <hankgrabowski@gmail.com>
Mon, 12 Dec 2022 17:38:45 +0000 (12:38 -0500)
committerHank Grabowski <hankgrabowski@gmail.com>
Mon, 12 Dec 2022 17:38:45 +0000 (12:38 -0500)
src/Factory/Api/Friendica/Photo.php

index 36df12d67ce9844832b6fbf67ef195022ba3ee74..2621a7830c410e526bb45bede07dc46ba4822ff6 100644 (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;