]> git.mxchange.org Git - friendica.git/commitdiff
Allow album to be empty string thus defaulting to i10n "Wall Photos" like in UI
authorHank Grabowski <hankgrabowski@gmail.com>
Tue, 13 Dec 2022 17:48:50 +0000 (12:48 -0500)
committerHank Grabowski <hankgrabowski@gmail.com>
Tue, 13 Dec 2022 17:48:50 +0000 (12:48 -0500)
src/Module/Api/Friendica/Photo/Create.php

index bb3dc63b2280329eb7194dde56cb7e7e7bb023f0..868296342a9e13dc422f9b09278f8fa66f11dd79 100644 (file)
@@ -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