Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Make sure not to use the repositories cache if not yet initialized.
Browse files Browse the repository at this point in the history
  • Loading branch information
cdujeu committed Apr 2, 2015
1 parent b8bddd7 commit 5191d2e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/src/core/classes/class.ConfService.php
Expand Up @@ -1443,7 +1443,9 @@ public function loadRepositoryDriverREST(&$repository)
$repository->driverInstance = $plugInstance;
if (isSet($_SESSION["REPO_ID"]) && $_SESSION["REPO_ID"] == $repository->getId()) {
$this->configs["REPOSITORY"] = $repository;
$this->configs["REPOSITORIES"][$_SESSION['REPO_ID']] = $repository;
if(is_array($this->configs["REPOSITORIES"])){
$this->configs["REPOSITORIES"][$_SESSION['REPO_ID']] = $repository;
}
}
return $plugInstance;
}
Expand Down

0 comments on commit 5191d2e

Please sign in to comment.