Commit 6f8e0629 authored by chenlei's avatar chenlei

sql执行报错屏蔽

parent 8a996a23
......@@ -255,7 +255,7 @@ class TINY_ADODB {
$this->Errorlog .= $err;
Return false;
}
if (defined('ENVIRONMENT') == 'production') {
if (ENVIRONMENT == 'production') {
die('数据库错误');
}
die($err);
......@@ -684,6 +684,9 @@ class SIMPLE_DB {
$this->Errorlog .= $err;
Return false;
}
if (ENVIRONMENT == 'production') {
die('数据库错误');
}
die($err);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment