From: Hank G Date: Tue, 13 Dec 2022 21:45:56 +0000 (-0500) Subject: Update src/Module/Api/Friendica/Photoalbum/Show.php X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ae8f1a1c5b21ae80501f7a903d197f3f78174659;p=friendica.git Update src/Module/Api/Friendica/Photoalbum/Show.php Co-authored-by: Hypolite Petovan --- 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) {