[files_external] fixing some undefined index
This commit is contained in:
parent
89bc26210a
commit
f512dea3be
|
@ -3,6 +3,15 @@
|
||||||
OCP\JSON::checkAppEnabled('files_external');
|
OCP\JSON::checkAppEnabled('files_external');
|
||||||
OCP\JSON::callCheck();
|
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') {
|
if ($_POST['isPersonal'] == 'true') {
|
||||||
OCP\JSON::checkLoggedIn();
|
OCP\JSON::checkLoggedIn();
|
||||||
$isPersonal = true;
|
$isPersonal = true;
|
||||||
|
@ -10,4 +19,5 @@ if ($_POST['isPersonal'] == 'true') {
|
||||||
OCP\JSON::checkAdminUser();
|
OCP\JSON::checkAdminUser();
|
||||||
$isPersonal = false;
|
$isPersonal = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
OC_Mount_Config::removeMountPoint($_POST['mountPoint'], $_POST['mountType'], $_POST['applicable'], $isPersonal);
|
OC_Mount_Config::removeMountPoint($_POST['mountPoint'], $_POST['mountType'], $_POST['applicable'], $isPersonal);
|
||||||
|
|
Loading…
Reference in New Issue