Preload Adapter Fix

This commit is contained in:
Philipp Holzer 2019-02-18 14:00:34 +01:00
parent a3152a96c2
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

@ -44,7 +44,10 @@ class PreloadPConfigAdapter extends AbstractDbaConfigAdapter implements IPConfig
$pconfigs = DBA::select('pconfig', ['cat', 'v', 'k'], ['uid' => $uid]);
while ($pconfig = DBA::fetch($pconfigs)) {
$return[$pconfig['cat']][$pconfig['k']] = $pconfig['v'];
$value = $pconfig['v'];
if (isset($value) && $value !== '') {
$return[$pconfig['cat']][$pconfig['k']] = $value;
}
}
DBA::close($pconfigs);