Check for existence of $_GET keys

`$dir` may for example very well not get passed at well.
This commit is contained in:
Lukas Reschke 2015-01-14 14:15:36 +01:00
parent 5b706a468f
commit 96cd7c017a
1 changed files with 2 additions and 2 deletions

View File

@ -25,8 +25,8 @@
OCP\User::checkLoggedIn();
\OC::$server->getSession()->close();
$files = $_GET["files"];
$dir = $_GET["dir"];
$files = isset($_GET['files']) ? $_GET['files'] : '';
$dir = isset($_GET['dir']) ? $_GET['dir'] : '';
$files_list = json_decode($files);
// in case we get only a single file