[Svn] r2025 - trunk/roundcubemail/program/include

trac at roundcube.net trac at roundcube.net
Thu Oct 30 10:15:01 CET 2008


Author: alec
Date: 2008-10-30 04:15:01 -0500 (Thu, 30 Oct 2008)
New Revision: 2025

Modified:
   trunk/roundcubemail/program/include/bugs.inc
Log:
- fix log_bug() for empty 'file' parameter


Modified: trunk/roundcubemail/program/include/bugs.inc
===================================================================
--- trunk/roundcubemail/program/include/bugs.inc	2008-10-29 19:28:20 UTC (rev 2024)
+++ trunk/roundcubemail/program/include/bugs.inc	2008-10-30 09:15:01 UTC (rev 2025)
@@ -73,12 +73,11 @@
   if ($CONFIG['debug_level'] & 1)
   {
     $post_query = ($_SERVER['REQUEST_METHOD'] == 'POST' ? '?_task='.urlencode($_POST['_task']).'&_action='.urlencode($_POST['_action']) : '');
-    $log_entry = sprintf("[%s] %s Error: %s in %s on line %d (%s %s)\n",
+    $log_entry = sprintf("[%s] %s Error: %s%s (%s %s)\n",
       date("d-M-Y H:i:s O", mktime()),
       $program,
       $arg_arr['message'],
-      $arg_arr['file'],
-      $arg_arr['line'],
+      $arg_arr['file'] ? sprintf(' in %s on line %d', $arg_arr['file'], $arg_arr['line']) : '',
       $_SERVER['REQUEST_METHOD'],
       $_SERVER['REQUEST_URI'] . $post_query);
       

_______________________________________________
http://lists.roundcube.net/mailman/listinfo/svn



More information about the Svn mailing list