mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 00:32:29 -04:00
Don't return error when just no sharing found
This commit is contained in:
parent
1e644b5a53
commit
1b5c8ff471
1 changed files with 1 additions and 1 deletions
|
|
@ -58,7 +58,7 @@ if (isset($_POST['action']) && isset($_POST['itemType']) && isset($_POST['item']
|
|||
case 'getItemsSharedStatuses':
|
||||
if (isset($_GET['itemType'])) {
|
||||
$return = OCP\Share::getItemsShared($_GET['itemType'], OCP\Share::FORMAT_STATUSES);
|
||||
($return) ? OC_JSON::success(array('data' => $return)) : OC_JSON::error();
|
||||
is_array($return) ? OC_JSON::success(array('data' => $return)) : OC_JSON::error();
|
||||
}
|
||||
break;
|
||||
case 'getItem':
|
||||
|
|
|
|||
Loading…
Reference in a new issue