From 5127a113aa7fb1c99a4e50febdbade08da5ff4e4 Mon Sep 17 00:00:00 2001 From: Philipp Holzer Date: Mon, 18 Feb 2019 14:40:35 +0100 Subject: [PATCH] set config_loaded with uid --- src/Core/Config/Adapter/PreloadPConfigAdapter.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Core/Config/Adapter/PreloadPConfigAdapter.php b/src/Core/Config/Adapter/PreloadPConfigAdapter.php index 72266744f2..bc49d623f3 100644 --- a/src/Core/Config/Adapter/PreloadPConfigAdapter.php +++ b/src/Core/Config/Adapter/PreloadPConfigAdapter.php @@ -25,11 +25,11 @@ class PreloadPConfigAdapter extends AbstractDbaConfigAdapter implements IPConfig { parent::__construct(); + $this->config_loaded = []; + if (isset($uid)) { $this->load($uid, 'config'); } - - $this->config_loaded = []; } /** @@ -43,7 +43,7 @@ class PreloadPConfigAdapter extends AbstractDbaConfigAdapter implements IPConfig return $return; } - if ($this->isLoaded($uid, $cat, null)) { + if (!$this->isLoaded($uid, $cat, null)) { return $return; } -- 2.39.5