Preload Adapter Fix

This commit is contained in:
Philipp Holzer 2019-02-18 14:00:34 +01:00
commit 2fc81898da
No known key found for this signature in database
GPG key ID: 517BE60E2CE5C8A5
5 changed files with 36 additions and 14 deletions

View file

@ -32,7 +32,10 @@ class PreloadConfigAdapter extends AbstractDbaConfigAdapter implements IConfigAd
$configs = DBA::select('config', ['cat', 'v', 'k']);
while ($config = DBA::fetch($configs)) {
$return[$config['cat']][$config['k']] = $config['v'];
$value = $config['v'];
if (isset($value) && $value !== '') {
$return[$config['cat']][$config['k']] = $value;
}
}
DBA::close($configs);