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

Commit 5191d2e

Browse files
committed
Make sure not to use the repositories cache if not yet initialized.
1 parent b8bddd7 commit 5191d2e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

core/src/core/classes/class.ConfService.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1443,7 +1443,9 @@ public function loadRepositoryDriverREST(&$repository)
14431443
$repository->driverInstance = $plugInstance;
14441444
if (isSet($_SESSION["REPO_ID"]) && $_SESSION["REPO_ID"] == $repository->getId()) {
14451445
$this->configs["REPOSITORY"] = $repository;
1446-
$this->configs["REPOSITORIES"][$_SESSION['REPO_ID']] = $repository;
1446+
if(is_array($this->configs["REPOSITORIES"])){
1447+
$this->configs["REPOSITORIES"][$_SESSION['REPO_ID']] = $repository;
1448+
}
14471449
}
14481450
return $plugInstance;
14491451
}

0 commit comments

Comments
 (0)