Fixed bug #9401: Use debug() for sqlDebug (thanks to Steffen Kamper)
authorJeff Segars <jsegars@alumni.rice.edu>
Mon, 22 Sep 2008 13:47:52 +0000 (13:47 +0000)
committerJeff Segars <jsegars@alumni.rice.edu>
Mon, 22 Sep 2008 13:47:52 +0000 (13:47 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@4164 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/class.t3lib_db.php

index d0862b6..b0271ab 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2008-09-22  Jeff Segars  <jeff@webempoweredchurch.org>
+
+       * Fixed bug #9401: Use debug() for sqlDebug (thanks to Steffen Kamper) 
+
 2008-09-21  Jeff Segars  <jeff@webempoweredchurch.org>
 
        * Fixed bug #8719: File upload ends up in parse_url error on Windows (thanks to Steffen Kamper)
index ce7cb42..4305609 100755 (executable)
@@ -1141,12 +1141,12 @@ class t3lib_DB {
 
                $error = $this->sql_error();
                if ($error)     {
-                       echo t3lib_div::view_array(array(
+                       debug(array(
                                'caller' => 't3lib_DB::'.$func,
                                'ERROR' => $error,
                                'lastBuiltQuery' => ($query ? $query : $this->debug_lastBuiltQuery),
                                'debug_backtrace' => t3lib_div::debug_trail()
-                       ));
+                       ), 'SQL debug');
                }
        }