* code for task#1899.

This commit is contained in:
xia0ta0
2014-06-23 14:36:25 +08:00
parent c5f387b238
commit 23ac86e209
+1
View File
@@ -1548,6 +1548,7 @@ class router
if(!empty($this->config->debug)) $this->saveSQL();
/* If any error occers, save it. */
if(!function_exists('error_get_last')) return;
$error = error_get_last();
if($error) $this->saveError($error['type'], $error['message'], $error['file'], $error['line']);
}