Preload Adapter Fix

This commit is contained in:
Philipp Holzer
2019-02-18 14:00:34 +01:00
parent a3152a96c2
commit 2fc81898da
5 changed files with 36 additions and 14 deletions

View File

@@ -33,10 +33,13 @@ class JITConfigAdapter extends AbstractDbaConfigAdapter implements IConfigAdapte
$configs = DBA::select('config', ['v', 'k'], ['cat' => $cat]);
while ($config = DBA::fetch($configs)) {
$key = $config['k'];
$key = $config['k'];
$value = $config['v'];
$return[$key] = $config['v'];
$this->in_db[$cat][$key] = true;
if (isset($value) && $value !== '') {
$return[$key] = $value;
$this->in_db[$cat][$key] = true;
}
}
DBA::close($configs);