X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FCore%2FConfig%2FPConfiguration.php;h=0d3b0c178c6cb24c02a53c8ec54454e3a096e220;hb=c1896eee34778ae022481af56f634bd6374544d2;hp=99b1aa14698b17d9b14fc0f57c966b39419c22dc;hpb=4375edd63e44b71913bd45bf25a4a554582b581e;p=friendica.git diff --git a/src/Core/Config/PConfiguration.php b/src/Core/Config/PConfiguration.php index 99b1aa1469..0d3b0c178c 100644 --- a/src/Core/Config/PConfiguration.php +++ b/src/Core/Config/PConfiguration.php @@ -77,18 +77,15 @@ class PConfiguration $refresh)) { $dbValue = $this->configAdapter->get($uid, $cat, $key); - if ($dbValue !== '!!') { + 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; } /**