set config_loaded with uid

This commit is contained in:
Philipp Holzer 2019-02-18 14:40:35 +01:00
parent 1194e9b41e
commit 5127a113aa
No known key found for this signature in database
GPG Key ID: 517BE60E2CE5C8A5

View 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;
}