diff options
author | Thomas Mueller <thomas.mueller@tmit.eu> | 2012-12-06 22:23:39 +0100 |
---|---|---|
committer | Thomas Mueller <thomas.mueller@tmit.eu> | 2013-02-11 15:45:10 +0100 |
commit | f512dea3bed0f86a53766e321f8bc64545db1721 (patch) | |
tree | dd019d2d0e076c8cb68da56cf5c8bb5cb299bb4b /apps/files_external/ajax | |
parent | 89bc26210ae653020e5fdaf9696f506c169bffb6 (diff) | |
download | nextcloud-server-f512dea3bed0f86a53766e321f8bc64545db1721.tar.gz nextcloud-server-f512dea3bed0f86a53766e321f8bc64545db1721.zip |
[files_external] fixing some undefined index
Diffstat (limited to 'apps/files_external/ajax')
-rw-r--r-- | apps/files_external/ajax/removeMountPoint.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/apps/files_external/ajax/removeMountPoint.php b/apps/files_external/ajax/removeMountPoint.php index aa446426202..2f5dbcfdbac 100644 --- a/apps/files_external/ajax/removeMountPoint.php +++ b/apps/files_external/ajax/removeMountPoint.php @@ -3,6 +3,15 @@ OCP\JSON::checkAppEnabled('files_external'); OCP\JSON::callCheck(); +if (!isset($_POST['isPersonal'])) + return; +if (!isset($_POST['mountPoint'])) + return; +if (!isset($_POST['mountType'])) + return; +if (!isset($_POST['applicable'])) + return; + if ($_POST['isPersonal'] == 'true') { OCP\JSON::checkLoggedIn(); $isPersonal = true; @@ -10,4 +19,5 @@ if ($_POST['isPersonal'] == 'true') { OCP\JSON::checkAdminUser(); $isPersonal = false; } + OC_Mount_Config::removeMountPoint($_POST['mountPoint'], $_POST['mountType'], $_POST['applicable'], $isPersonal); |