Fixing value check for configuration

This commit is contained in:
Philipp Holzer 2019-02-18 11:27:51 +01:00
parent 86aaa6565e
commit f536107911
No known key found for this signature in database
GPG key ID: 517BE60E2CE5C8A5
6 changed files with 19 additions and 37 deletions

View file

@ -55,11 +55,12 @@ class PreloadConfigAdapter extends AbstractDbaConfigAdapter implements IConfigAd
// manage array value
$value = (preg_match("|^a:[0-9]+:{.*}$|s", $config['v']) ? unserialize($config['v']) : $config['v']);
return $value;
} else {
return '!<unset>!';
if (isset($value) && $value !== '') {
return $value;
}
}
return '!<unset>!';
}
/**