From: Hank Grabowski Date: Tue, 13 Dec 2022 17:48:50 +0000 (-0500) Subject: Allow album to be empty string thus defaulting to i10n "Wall Photos" like in UI X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=8f56aa316b9e156c1d8f6073fbe0330a98acb701;p=friendica.git Allow album to be empty string thus defaulting to i10n "Wall Photos" like in UI --- diff --git a/src/Module/Api/Friendica/Photo/Create.php b/src/Module/Api/Friendica/Photo/Create.php index bb3dc63b22..868296342a 100644 --- a/src/Module/Api/Friendica/Photo/Create.php +++ b/src/Module/Api/Friendica/Photo/Create.php @@ -64,8 +64,8 @@ class Create extends BaseApi // do several checks on input parameters // we do not allow calls without album string - if ($album == null) { - throw new HTTPException\BadRequestException('no albumname specified'); + if ($album === null) { + throw new HTTPException\BadRequestException('no album name specified'); } // error if no media posted in create-mode