Skip to content
Snippets Groups Projects
Commit 1b5c8ff4 authored by Bart Visscher's avatar Bart Visscher
Browse files

Don't return error when just no sharing found

parent 1e644b5a
Branches
No related tags found
No related merge requests found
......@@ -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':
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment