diff options
author | thomascube <thomas@roundcube.net> | 2005-12-11 22:56:46 +0000 |
---|---|---|
committer | thomascube <thomas@roundcube.net> | 2005-12-11 22:56:46 +0000 |
commit | 31b2cee231cf5a154c87cccc1228df7b3bb1bf84 (patch) | |
tree | 0754cd0ea719eca66b6efd91e5155a2497d7bc80 /program/include/bugs.inc | |
parent | 1cded85790206afe084e1baff371c543711b2b18 (diff) |
Bugfixes on listing and caching functions
Diffstat (limited to 'program/include/bugs.inc')
-rw-r--r-- | program/include/bugs.inc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/program/include/bugs.inc b/program/include/bugs.inc index c9116d5a2..bc1a2932d 100644 --- a/program/include/bugs.inc +++ b/program/include/bugs.inc @@ -97,7 +97,12 @@ function log_bug($arg_arr) // show error if debug_mode is on if ($CONFIG['debug_level'] & 4) { - print "<b>$program Error in $arg_arr[file] ($arg_arr[line]):</b> "; + print "<b>$program Error"; + + if (!empty($arg_arr['file']) && !empty($arg_arr['line'])) + print " in $arg_arr[file] ($arg_arr[line])"; + + print ":</b> "; print nl2br($arg_arr['message']); print '<br />'; flush(); |