diff options
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': |