From: Hank Grabowski Date: Tue, 13 Dec 2022 21:04:03 +0000 (-0500) Subject: Remove extraneous comment and fix whitespace between lines for style X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5288ed46d4c2809349060608a87642518fad280d;p=friendica.git Remove extraneous comment and fix whitespace between lines for style --- diff --git a/src/Module/Api/Friendica/Photoalbum/Show.php b/src/Module/Api/Friendica/Photoalbum/Show.php index c1a7959506..ac9573da38 100644 --- a/src/Module/Api/Friendica/Photoalbum/Show.php +++ b/src/Module/Api/Friendica/Photoalbum/Show.php @@ -62,17 +62,16 @@ class Show extends BaseApi 'limit' => 50, // Maximum number of results to return. Defaults to 50. Max 500 'latest_first' => false, // Whether to reverse the order so newest are first ], $request); + if (empty($request['album'])) { throw new HTTPException\BadRequestException('No album name specified.'); } - $orderDescending = $request['latest_first']; $album = $request['album']; $condition = ["`uid` = ? AND `album` = ?", $uid, $album]; $params = ['order' => ['id' => $orderDescending], 'group_by' => ['resource-id']]; - //'limit' => [$request['offset'], $request['limit']] $limit = $request['limit']; if ($limit > 500) { $limit = 500;