summaryrefslogtreecommitdiff
path: root/api
diff options
context:
space:
mode:
Diffstat (limited to 'api')
-rw-r--r--api/index.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/index.php b/api/index.php
index 430082f16..750a95721 100644
--- a/api/index.php
+++ b/api/index.php
@@ -46,7 +46,7 @@
UserHelper::load_user_plugins($_SESSION["uid"]);
}
- $method = strtolower($_REQUEST["op"]);
+ $method = strtolower($_REQUEST["op"] ?? "");
$handler = new API($_REQUEST);