X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=includes%2Ferrors.inc;h=6f9a243299c391f0f2330145773872d6bfc22cda;hb=0c794db98d716ec8823435d8423c98a12bebba66;hp=9687b6ddef3b4c21f75cda759e79295d14b10ca9;hpb=09e3e0ae4aec91dd5d4c62d19b9c8550bd78bff1;p=fa-stable.git
diff --git a/includes/errors.inc b/includes/errors.inc
index 9687b6dd..6f9a2432 100644
--- a/includes/errors.inc
+++ b/includes/errors.inc
@@ -102,6 +102,9 @@ function fmt_errors($center=false) {
// $class = 'no_msg';
if (count($messages)) {
foreach($messages as $cnt=>$msg) {
+ if ($go_debug && $msg[0]>E_USER_NOTICE)
+ $msg[0] = E_ERROR;
+
if ($msg[0]>$type) continue;
if ($msg[0]<$type) {
@@ -114,9 +117,11 @@ function fmt_errors($center=false) {
$content = ''; // clean other messages
}
}
+
$str = $msg[1];
- if ($msg[0] < E_USER_ERROR && $msg[2] != null)
+ if (!in_array($msg[0], array(E_USER_NOTICE, E_USER_ERROR, E_USER_WARNING)) && $msg[2] != null)
$str .= ' '._('in file').': '.$msg[2].' '._('at line ').$msg[3];
+
if ($go_debug>1 && $type!=E_USER_NOTICE && $type!=E_USER_WARNING)
$str .= '
'.$msg[4];
$content .= ($cnt ? '