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.
This commit is contained in:
Jon Schewe 2021-09-07 06:38:17 -05:00
parent 36e174750e
commit e44f0cb937
1 changed files with 1 additions and 1 deletions

View File

@ -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"]);
?>