projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed include file issue in sales order entry.
[fa-stable.git]
/
includes
/
errors.inc
diff --git
a/includes/errors.inc
b/includes/errors.inc
index 0e8b2578b1978d0e92f3fa5aca9bba8d93f2a67d..5deae97bfa29c8887ec878f51b9665271489b242 100644
(file)
--- a/
includes/errors.inc
+++ b/
includes/errors.inc
@@
-71,9
+71,7
@@
function error_handler($errno, $errstr, $file, $line) {
}
}
}
}
- if ($go_debug>1) {
- $bt = get_backtrace(true, 1);
- }
+ $bt = $go_debug>1 ? get_backtrace(true, 1) : array();
// error_reporting==0 when messages are set off with @
if ($errno & error_reporting()) {
// error_reporting==0 when messages are set off with @
if ($errno & error_reporting()) {
@@
-94,7
+92,7
@@
function error_handler($errno, $errstr, $file, $line) {
// FIX center is unused now
function fmt_errors($center=false) {
global $messages, $path_to_root, $go_debug;
// FIX center is unused now
function fmt_errors($center=false) {
global $messages, $path_to_root, $go_debug;
-
+
$msg_class = array(
E_USER_ERROR => 'err_msg',
E_USER_WARNING =>'warn_msg',
$msg_class = array(
E_USER_ERROR => 'err_msg',
E_USER_WARNING =>'warn_msg',
@@
-120,7
+118,7
@@
function fmt_errors($center=false) {
$content = ''; // clean other messages
}
}
$content = ''; // clean other messages
}
}
-
+
$str = $msg[1];
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];
$str = $msg[1];
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];
@@
-196,7
+194,7
@@
function display_db_error($msg, $sql_statement=null, $exit=true)
}
$str .= "<br><br>";
}
$str .= "<br><br>";
- if ($go_debug)
+ if (
!
$go_debug)
error_log($str);
else {
if($msg)
error_log($str);
else {
if($msg)