From 8a83843dc69d6efd54a613a6cd6b669db13abc7b Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Mon, 19 Nov 2007 09:43:47 +0000 Subject: [PATCH] Fix bug in RepoGroup::getRepo(), 0 == 'local' --- includes/filerepo/RepoGroup.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]; -- 2.20.1