removed PHP4-ism
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sun, 11 Jul 2010 18:13:23 +0000 (18:13 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sun, 11 Jul 2010 18:13:23 +0000 (18:13 +0000)
includes/Block.php

index f4e14b2..de01555 100644 (file)
@@ -161,7 +161,7 @@ class Block {
                wfDebug( "Block::load: '$address', '$user', $killExpired\n" );
 
                $options = array();
-               $db =& $this->getDBOptions( $options );
+               $db = $this->getDBOptions( $options );
 
                if ( 0 == $user && $address === '' ) {
                        # Invalid user specification, not blocked
@@ -299,7 +299,7 @@ class Block {
                $range = substr( $iaddr, 0, 4 );
 
                $options = array();
-               $db =& $this->getDBOptions( $options );
+               $db = $this->getDBOptions( $options );
                $conds = array(
                        'ipb_range_start' . $db->buildLike( $range, $db->anyString() ),
                        "ipb_range_start <= '$iaddr'",