summaryrefslogtreecommitdiff
path: root/backend.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-02-28 10:12:57 +0300
committerAndrew Dolgov <[email protected]>2021-02-28 10:12:57 +0300
commitafc7142250dc02654a53a7222abe88df964d58f4 (patch)
tree9c31e51cb00fc8bff550995517acbf19b55b0607 /backend.php
parente2cbb54b2c8f5666a9eabcbf80fb6a3e4d0676a3 (diff)
move all $fetch globals to UrlHelper
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 e310322f2..545d9634d 100644
--- a/backend.php
+++ b/backend.php
@@ -157,6 +157,6 @@
}
header("Content-Type: text/json");
- print Errors::to_json(Errors::E_UNKNOWN_METHOD, ["info" => get_class($handler) . "->$method"]);
+ print Errors::to_json(Errors::E_UNKNOWN_METHOD, [ "info" => (isset($handler) ? get_class($handler) : "UNKNOWN:".$_REQUEST["op"]) . "->$method"]);
?>