mirror of
https://github.com/friendica/friendica
synced 2025-04-26 17:10:10 +00:00
Bugfixings in Config
- replaced usage of "!<unset>!" with null-returns - fixed bool settings (0/1) - fixed overriding config-values - fixed basepath problems
This commit is contained in:
parent
2d91d5c3d9
commit
8c3aebc376
24 changed files with 175 additions and 157 deletions
|
@ -77,18 +77,15 @@ class PConfiguration
|
|||
$refresh)) {
|
||||
$dbValue = $this->configAdapter->get($uid, $cat, $key);
|
||||
|
||||
if ($dbValue !== '!<unset>!') {
|
||||
if (isset($dbValue)) {
|
||||
$this->configCache->setP($uid, $cat, $key, $dbValue);
|
||||
return $dbValue;
|
||||
}
|
||||
}
|
||||
|
||||
// use the config cache for return
|
||||
if ($this->configCache->hasP($uid, $cat, $key)) {
|
||||
return $this->configCache->getP($uid, $cat, $key);
|
||||
} else {
|
||||
return $default_value;
|
||||
}
|
||||
$result = $this->configCache->getP($uid, $cat, $key);
|
||||
return (isset($result)) ? $result : $default_value;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue