From: Alexandre Emsenhuber Date: Thu, 13 Feb 2014 17:50:50 +0000 (+0100) Subject: Explicitely return null from WikiPage::newFromID() X-Git-Tag: 1.31.0-rc.0~16927 X-Git-Url: http://git.cyclocoop.org/url?a=commitdiff_plain;h=25863cbe2a89e25d04fe71f0b1b441ca7ad42857;p=lhc%2Fweb%2Fwiklou.git Explicitely return null from WikiPage::newFromID() Follow-up I8943b4dec5 (d7f465f). To match the documentation. Change-Id: I7b960704d6b3a83e389ece182bf94142341ea88c --- diff --git a/includes/WikiPage.php b/includes/WikiPage.php index ee6f57437f..69c37ce4c1 100644 --- a/includes/WikiPage.php +++ b/includes/WikiPage.php @@ -144,7 +144,7 @@ class WikiPage implements Page, IDBAccessObject { public static function newFromID( $id, $from = 'fromdb' ) { // page id's are never 0 or negative, see bug 61166 if ( $id < 1 ) { - return; + return null; } $from = self::convertSelectType( $from );