X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;ds=sidebyside;f=maintenance%2FMaintenance.php;h=f3c2e12da22e9ffa141979ffb7e381ded8746b82;hb=1aa09113cd08501496ee616a039989ae4a0fb4ef;hp=e76426d01a690c0b92064abf51a78c961ca39d98;hpb=1db4c42f46b538b45aff231989ab495b317aceda;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/Maintenance.php b/maintenance/Maintenance.php index e76426d01a..f3c2e12da2 100644 --- a/maintenance/Maintenance.php +++ b/maintenance/Maintenance.php @@ -1326,7 +1326,6 @@ abstract class Maintenance { $this->output( "done.\n" ); } - # Done $this->commitTransaction( $dbw, __METHOD__ ); } @@ -1349,11 +1348,10 @@ abstract class Maintenance { * @return IMaintainableDatabase */ protected function getDB( $db, $groups = [], $wiki = false ) { - if ( is_null( $this->mDb ) ) { + if ( $this->mDb === null ) { return wfGetDB( $db, $groups, $wiki ); - } else { - return $this->mDb; } + return $this->mDb; } /**