Skip to content

Commit

Permalink
Update api.php
Browse files Browse the repository at this point in the history
Minor api fix
  • Loading branch information
sergejey committed Jan 13, 2020
1 parent 9d4143d commit 51c21bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api.php
Expand Up @@ -400,7 +400,7 @@
function apiShutdown() {
global $result;
$a=error_get_last();
if (isset($a['type']) && ($last_error['type'] === E_ERROR)) {
if (isset($a['type']) && ($a['type'] === E_ERROR)) {
DebMes("Result ".$_SERVER['REQUEST_URI'].' '.json_encode($a),'api_error');
} elseif (isset($result['passed']) && $result['passed']>5) {
DebMes("Result [".$result['passed']."] of : ".$_SERVER['REQUEST_URI'].' '.json_encode($result),'api_slow');
Expand Down

0 comments on commit 51c21bd

Please sign in to comment.