From 31b2cee231cf5a154c87cccc1228df7b3bb1bf84 Mon Sep 17 00:00:00 2001 From: thomascube Date: Sun, 11 Dec 2005 22:56:46 +0000 Subject: Bugfixes on listing and caching functions --- program/include/bugs.inc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'program/include/bugs.inc') 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 "$program Error in $arg_arr[file] ($arg_arr[line]): "; + print "$program Error"; + + if (!empty($arg_arr['file']) && !empty($arg_arr['line'])) + print " in $arg_arr[file] ($arg_arr[line])"; + + print ": "; print nl2br($arg_arr['message']); print '
'; flush(); -- cgit v1.2.3