From: Tim Starling Date: Mon, 19 Nov 2007 09:43:47 +0000 (+0000) Subject: Fix bug in RepoGroup::getRepo(), 0 == 'local' X-Git-Tag: 1.31.0-rc.0~50811 X-Git-Url: http://git.cyclocoop.org/fichier?a=commitdiff_plain;h=8a83843dc69d6efd54a613a6cd6b669db13abc7b;p=lhc%2Fweb%2Fwiklou.git Fix bug in RepoGroup::getRepo(), 0 == 'local' --- diff --git a/includes/filerepo/RepoGroup.php b/includes/filerepo/RepoGroup.php index 23d222af69..1204031fd0 100644 --- a/includes/filerepo/RepoGroup.php +++ b/includes/filerepo/RepoGroup.php @@ -76,7 +76,7 @@ class RepoGroup { if ( !$this->reposInitialised ) { $this->initialiseRepos(); } - if ( $index == 'local' ) { + if ( $index === 'local' ) { return $this->localRepo; } elseif ( isset( $this->foreignRepos[$index] ) ) { return $this->foreignRepos[$index];