Fixing bug #63738: Debug msg not showing correctly
authorSergio Santoro <santoro.srg@gmail.com>
Sat, 12 Apr 2014 12:39:13 +0000 (14:39 +0200)
committerSergio Santoro <santoro.srg@gmail.com>
Sat, 12 Apr 2014 13:12:38 +0000 (15:12 +0200)
Change-Id: I49d826f63810d99aefa5b842cd3d6b88989ef086

includes/db/Database.php

index 52a3298..9254bb4 100644 (file)
@@ -630,8 +630,8 @@ abstract class DatabaseBase implements IDatabase, DatabaseType {
        public function setFlag( $flag ) {
                global $wgDebugDBTransactions;
                $this->mFlags |= $flag;
-               if ( ( $flag & DBO_TRX ) & $wgDebugDBTransactions ) {
-                       wfDebug( "Implicit transactions are now disabled.\n" );
+               if ( ( $flag & DBO_TRX ) && $wgDebugDBTransactions ) {
+                       wfDebug( "Implicit transactions are now enabled.\n" );
                }
        }