From: Hank Grabowski Date: Mon, 12 Dec 2022 17:38:45 +0000 (-0500) Subject: Use is_int not intval to return Photo->createFromId back to original version X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a8428264f032b8a5cf9d98ebdbf4ce8b29814b65;p=friendica.git Use is_int not intval to return Photo->createFromId back to original version --- diff --git a/src/Factory/Api/Friendica/Photo.php b/src/Factory/Api/Friendica/Photo.php index 36df12d67c..2621a7830c 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;