From a8428264f032b8a5cf9d98ebdbf4ce8b29814b65 Mon Sep 17 00:00:00 2001 From: Hank Grabowski Date: Mon, 12 Dec 2022 12:38:45 -0500 Subject: [PATCH] Use is_int not intval to return Photo->createFromId back to original version --- src/Factory/Api/Friendica/Photo.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.5