* Fix function comment in debug dump of SQL statements
[lhc/web/wiklou.git] / includes / Database.php
index 8b9858a..0dce6a9 100644 (file)
@@ -309,8 +309,8 @@ class Database {
                }
 
                if ( $this->debug() ) {
-                       $sqlx = substr( $sql, 0, 500 );
-                       $sqlx = strtr($sqlx,"\t\n",'  ');
+                       $sqlx = substr( $commentedSql, 0, 500 );
+                       $sqlx = strtr( $sqlx, "\t\n", '  ' );
                        wfDebug( "SQL: $sqlx\n" );
                }