From: jeroendedauw Date: Thu, 6 Dec 2012 22:36:42 +0000 (+0100) Subject: use null rather then false and doc fix X-Git-Tag: 1.31.0-rc.0~21274^2 X-Git-Url: http://git.cyclocoop.org/wiki/Target_page?a=commitdiff_plain;h=d5799083b8d90d835051288d18b0c69706b93c8b;p=lhc%2Fweb%2Fwiklou.git use null rather then false and doc fix Change-Id: Ifb8798a66d32da36fc8134e2039ec880c0f1dc1a --- diff --git a/includes/site/Sites.php b/includes/site/Sites.php index edd3d64cc0..135308c8e7 100644 --- a/includes/site/Sites.php +++ b/includes/site/Sites.php @@ -32,9 +32,9 @@ class Sites { /** * @since 1.21 - * @var SiteList|false + * @var SiteList|null */ - protected $sites = false; + protected $sites = null; /** * Constructor. @@ -65,7 +65,7 @@ class Sites { * * @since 1.21 * - * @param string|false $globalId + * @param string|boolean false $globalId * * @return Site */ @@ -95,7 +95,7 @@ class Sites { */ public function getSites( $source = 'cache' ) { if ( $source === 'cache' ) { - if ( $this->sites === false ) { + if ( $this->sites === null ) { $cache = wfGetMainCache(); $sites = $cache->get( wfMemcKey( 'SiteList' ) );