* Fix the normal request.

This commit is contained in:
dingguodong
2024-03-27 11:07:06 +08:00
committed by liyang
parent f5fe8cdb1f
commit 45afc90a5b
+5 -3
View File
@@ -3103,9 +3103,11 @@ class baseRouter
* */
if(!function_exists('error_get_last')) return;
$error = error_get_last();
if($error) $this->saveError($error['type'], $error['message'], $error['file'], $error['line']);
if(!empty($this->config->debug) && (!is_dir($this->logRoot) || !is_writable($this->logRoot))) helper::end('ERROR: ' . $error['message']);
if($error)
{
$this->saveError($error['type'], $error['message'], $error['file'], $error['line']);
if(!empty($this->config->debug) && (!is_dir($this->logRoot) || !is_writable($this->logRoot))) helper::end('ERROR: ' . $error['message']);
}
}
/**