From: Philipp Holzer Date: Mon, 18 Feb 2019 13:40:35 +0000 (+0100) Subject: set config_loaded with uid X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5127a113aa7fb1c99a4e50febdbade08da5ff4e4;p=friendica.git set config_loaded with uid --- 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; }