]> source.dussan.org Git - nextcloud-server.git/commitdiff
Check whether the app is set
authorLukas Reschke <lukas@statuscode.ch>
Tue, 18 Feb 2014 13:12:49 +0000 (14:12 +0100)
committerLukas Reschke <lukas@statuscode.ch>
Tue, 18 Feb 2014 13:12:49 +0000 (14:12 +0100)
core/ajax/appconfig.php

index 1d066d9169a8a654039fa92063ce345c2a91896e..05b7572c6d76c5d9abb8725e4cf7451cf7bd771f 100644 (file)
@@ -9,7 +9,10 @@ OC_Util::checkAdminUser();
 OCP\JSON::callCheck();
 
 $action=isset($_POST['action'])?$_POST['action']:$_GET['action'];
-$app=OC_App::cleanAppId(isset($_POST['app'])?$_POST['app']:$_GET['app']);
+
+if(isset($_POST['app']) || isset($_GET['app'])) {
+       $app=OC_App::cleanAppId(isset($_POST['app'])?$_POST['app']:$_GET['app']);
+}
 
 // An admin should not be able to add remote and public services
 // on its own. This should only be possible programmatically.