$_POST variables should be $_GET for fetch

This commit is contained in:
Michael Gapczynski 2012-06-25 15:01:14 -04:00 committed by Bart Visscher
parent b5961635ea
commit 578b8a9da1
1 changed files with 2 additions and 2 deletions

View File

@ -44,11 +44,11 @@ if (isset($_POST['action'])) {
} else if (isset($_GET['fetch'])) {
switch ($_GET['fetch']) {
case 'getItemsSharedStatuses':
$return = OCP\Share::getItemsSharedStatuses($_POST['itemType']);
$return = OCP\Share::getItemsSharedStatuses($_GET['itemType']);
($return) ? OC_JSON::success(array('data' => $return)) : OC_JSON::error();
break;
case 'getItemShared':
$return = OCP\Share::getItemShared($_POST['itemType'], $_POST['item']);
$return = OCP\Share::getItemShared($_GET['itemType'], $_GET['item']);
($return) ? OC_JSON::success(array('data' => $return)) : OC_JSON::error();
break;
case 'getShareWith':