From ae8f1a1c5b21ae80501f7a903d197f3f78174659 Mon Sep 17 00:00:00 2001 From: Hank G Date: Tue, 13 Dec 2022 16:45:56 -0500 Subject: [PATCH] Update src/Module/Api/Friendica/Photoalbum/Show.php Co-authored-by: Hypolite Petovan --- src/Module/Api/Friendica/Photoalbum/Show.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Module/Api/Friendica/Photoalbum/Show.php b/src/Module/Api/Friendica/Photoalbum/Show.php index e47ef51daa..485b3e91e7 100644 --- a/src/Module/Api/Friendica/Photoalbum/Show.php +++ b/src/Module/Api/Friendica/Photoalbum/Show.php @@ -68,9 +68,9 @@ class Show extends BaseApi } $orderDescending = $request['latest_first']; - $album = $request['album']; - $condition = ["`uid` = ? AND `album` = ?", $uid, $album]; - $params = ['order' => ['id' => $orderDescending], 'group_by' => ['resource-id']]; + $album = $request['album']; + $condition = ["`uid` = ? AND `album` = ?", $uid, $album]; + $params = ['order' => ['id' => $orderDescending], 'group_by' => ['resource-id']]; $limit = $request['limit']; if ($limit > 500) {