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

trac at roundcube.net trac at roundcube.net
Wed Sep 8 19:40:41 CEST 2010


Author: alec
Date: 2010-09-08 12:40:41 -0500 (Wed, 08 Sep 2010)
New Revision: 3947

Modified:
   trunk/roundcubemail/program/include/rcube_mdb2.php
Log:
- Add semicolon at the end of SQL queries in log (#1486957)


Modified: trunk/roundcubemail/program/include/rcube_mdb2.php
===================================================================
--- trunk/roundcubemail/program/include/rcube_mdb2.php	2010-09-08 09:40:39 UTC (rev 3946)
+++ trunk/roundcubemail/program/include/rcube_mdb2.php	2010-09-08 17:40:41 UTC (rev 3947)
@@ -725,7 +725,8 @@
 function mdb2_debug_handler(&$db, $scope, $message, $context = array())
 {
     if ($scope != 'prepare') {
-        $debug_output = $scope . '('.$db->db_index.'): ' . $message;
+        $debug_output = sprintf('%s(%d): %s;',
+            $scope, $db->db_index, rtrim($message, ';'));
         write_log('sql', $debug_output);
     }
 }

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



More information about the Svn mailing list