From ce2b5f2faedab7dec81fa23ba7c5bef8057e8baf Mon Sep 17 00:00:00 2001 From: Varun Patil Date: Wed, 2 Aug 2023 15:28:28 -0700 Subject: [PATCH] albums: refactor change Signed-off-by: Varun Patil --- lib/Db/AlbumsQuery.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/Db/AlbumsQuery.php b/lib/Db/AlbumsQuery.php index 51683f2a..934a2fc7 100644 --- a/lib/Db/AlbumsQuery.php +++ b/lib/Db/AlbumsQuery.php @@ -86,9 +86,8 @@ class AlbumsQuery // Post process foreach ($albums as &$row) { - $albumId = (int) $row['album_id']; $row['cluster_id'] = $row['user'].'/'.$row['name']; - $row['album_id'] = $albumId; + $row['album_id'] = (int) $row['album_id']; $row['created'] = (int) $row['created']; $row['last_added_photo'] = (int) $row['last_added_photo']; }