summaryrefslogtreecommitdiff
path: root/backend.php
diff options
context:
space:
mode:
authorJon Schewe <[email protected]>2021-09-07 06:38:17 -0500
committerJon Schewe <[email protected]>2021-09-07 06:38:17 -0500
commite44f0cb9376de377b7fb7b48f5ae9c338d7470fe (patch)
treee97c035027984cffebe4d8da7313ad3e9585de5f /backend.php
parent36e174750ee61e1a7856e9459e2d91deb4f8f93f (diff)
Fix undefined index error
Getting $op is handled at the top of the file, use the same variable at the end of the file to avoid errors about an undefined index.
Diffstat (limited to 'backend.php')
-rw-r--r--backend.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/backend.php b/backend.php
index b2ff46dca..bd24416f6 100644
--- a/backend.php
+++ b/backend.php
@@ -161,6 +161,6 @@
}
header("Content-Type: text/json");
- print Errors::to_json(Errors::E_UNKNOWN_METHOD, [ "info" => (isset($handler) ? get_class($handler) : "UNKNOWN:".$_REQUEST["op"]) . "->$method"]);
+ print Errors::to_json(Errors::E_UNKNOWN_METHOD, [ "info" => (isset($handler) ? get_class($handler) : "UNKNOWN:".$op) . "->$method"]);
?>