修正一处可能的警告错误

This commit is contained in:
thinkphp
2015-12-29 20:33:06 +08:00
parent 455b3b21f4
commit 00f469b387

View File

@@ -89,7 +89,7 @@ class Error
public static function halt($error, $code = 1)
{
$message = is_array($error) ? $error['message'] : $error;
$code = is_array($error) ? $error['code'] : $code;
$code = isset($error['code']) ? $error['code'] : $code;
if (APP_DEBUG) {
//调试模式下输出错误信息