From 31b2cee231cf5a154c87cccc1228df7b3bb1bf84 Mon Sep 17 00:00:00 2001
From: thomascube <thomas@roundcube.net>
Date: Sun, 11 Dec 2005 17:56:46 -0500
Subject: [PATCH] Bugfixes on listing and caching functions

---
 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 c9116d5..bc1a293 100644
--- a/program/include/bugs.inc
+++ b/program/include/bugs.inc
@@ -97,7 +97,12 @@
   // show error if debug_mode is on
   if ($CONFIG['debug_level'] & 4)
     {
-    print "<b>$program Error in $arg_arr[file] ($arg_arr[line]):</b>&nbsp;";
+    print "<b>$program Error";
+
+    if (!empty($arg_arr['file']) && !empty($arg_arr['line']))
+      print " in $arg_arr[file] ($arg_arr[line])";
+
+    print ":</b>&nbsp;";
     print nl2br($arg_arr['message']);
     print '<br />';
     flush();

--
Gitblit v1.9.1