X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=maintenance%2FMaintenance.php;h=f3c2e12da22e9ffa141979ffb7e381ded8746b82;hb=1aa09113cd08501496ee616a039989ae4a0fb4ef;hp=71d12ee0bc04e957699b47ed1d42c190484db981;hpb=aa22756f8df1e4ef5de29ce9dcc622782192a23d;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/Maintenance.php b/maintenance/Maintenance.php index 71d12ee0bc..f3c2e12da2 100644 --- a/maintenance/Maintenance.php +++ b/maintenance/Maintenance.php @@ -1348,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; } /**