diff options
author | Jon Schewe <[email protected]> | 2021-09-07 06:38:17 -0500 |
---|---|---|
committer | Jon Schewe <[email protected]> | 2021-09-07 06:38:17 -0500 |
commit | e44f0cb9376de377b7fb7b48f5ae9c338d7470fe (patch) | |
tree | e97c035027984cffebe4d8da7313ad3e9585de5f | |
parent | 36e174750ee61e1a7856e9459e2d91deb4f8f93f (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.
-rw-r--r-- | backend.php | 2 |
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"]); ?> |