Browse Source

Fix condition in api_fr_photo_create_update

tags/2019.01
Hypolite Petovan 1 year ago
parent
commit
9c534546e4
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      include/api.php

+ 2
- 2
include/api.php View File

@@ -3644,7 +3644,7 @@ api_register_func('api/direct_messages/destroy', 'api_direct_messages_destroy',
/**
* Unfollow Contact
*
* @brief unfollow contact
* @brief unfollow contact
*
* @param string $type Known types are 'atom', 'rss', 'xml' and 'json'
* @return string|array
@@ -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


Loading…
Cancel
Save