]> git.mxchange.org Git - friendica.git/commitdiff
set config_loaded with uid
authorPhilipp Holzer <admin@philipp.info>
Mon, 18 Feb 2019 13:40:35 +0000 (14:40 +0100)
committerPhilipp Holzer <admin@philipp.info>
Mon, 18 Feb 2019 13:40:35 +0000 (14:40 +0100)
src/Core/Config/Adapter/PreloadPConfigAdapter.php

index 72266744f24264f41f6a1c94fadf9f5cc1f4ec8e..bc49d623f33301a3963e3a6abf48e6baf92b8fb5 100644 (file)
@@ -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;
                }