Add missing return value for DatabaseBase::open() overrides
authorSiebrand Mazeland <s.mazeland@xs4all.nl>
Fri, 27 Dec 2013 16:59:39 +0000 (17:59 +0100)
committerSiebrand <siebrand@wikimedia.org>
Fri, 27 Dec 2013 17:05:57 +0000 (17:05 +0000)
Change-Id: Ifcd9e6fb36a5f8f53ad38a60719267d69c86c17e

includes/db/DatabaseMssql.php
includes/db/DatabaseOracle.php

index 5a5eab1..49b0121 100644 (file)
@@ -88,7 +88,7 @@ class DatabaseMssql extends DatabaseBase {
 
                # e.g. the class is being loaded
                if ( !strlen( $user ) ) {
-                       return;
+                       return null;
                }
 
                $this->close();
index 10715e4..0619fd6 100644 (file)
@@ -302,7 +302,7 @@ class DatabaseOracle extends DatabaseBase {
                }
 
                if ( !strlen( $user ) ) { # e.g. the class is being loaded
-                       return;
+                       return null;
                }
 
                if ( $wgDBOracleDRCP ) {