1
1
Fork 0

Fix condition in api_fr_photo_create_update

This commit is contained in:
Hypolite Petovan 2018-11-30 10:48:47 -05:00
parent 065509cc9a
commit 9c534546e4

View file

@ -4082,7 +4082,7 @@ function api_fr_photo_create_update($type)
$deny_cid = defaults($_REQUEST, 'deny_cid' , (array_key_exists('deny_cid' , $_REQUEST) ? " " : null));
$allow_gid = defaults($_REQUEST, 'allow_gid', (array_key_exists('allow_gid', $_REQUEST) ? " " : null));
$deny_gid = defaults($_REQUEST, 'deny_gid' , (array_key_exists('deny_gid' , $_REQUEST) ? " " : null));
$visibility = !empty($_REQUEST['visibility']) || $_REQUEST['visibility'] !== "false";
$visibility = !empty($_REQUEST['visibility']) && $_REQUEST['visibility'] !== "false";
// do several checks on input parameters
// we do not allow calls without album string