diff options
author | Bart Visscher <bartv@thisnet.nl> | 2012-08-07 23:29:01 +0200 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2012-08-07 23:29:01 +0200 |
commit | 1b5c8ff47175492f3925aea6c6dda3aaf5445cd3 (patch) | |
tree | 43730c4eb400ce4a4153812970779e988f9843dc /core | |
parent | 1e644b5a53856b2b4e2310e96ce6155fe32982d9 (diff) | |
download | nextcloud-server-1b5c8ff47175492f3925aea6c6dda3aaf5445cd3.tar.gz nextcloud-server-1b5c8ff47175492f3925aea6c6dda3aaf5445cd3.zip |
Don't return error when just no sharing found
Diffstat (limited to 'core')
-rw-r--r-- | core/ajax/share.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/ajax/share.php b/core/ajax/share.php index 8a41466a248..8ca2c637f2c 100644 --- a/core/ajax/share.php +++ b/core/ajax/share.php @@ -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': |