diff --git a/include/Core/Config.php b/include/Core/Config.php index 46972e1eb7..2f99c1aec4 100644 --- a/include/Core/Config.php +++ b/include/Core/Config.php @@ -126,9 +126,9 @@ class Config { public static function set($family, $key, $value) { global $a; - if (self::get($family, $key) === $value) { - return true; - } + if (self::get($family, $key) === $value) { + return true; + } $a->config[$family][$key] = $value; diff --git a/include/Core/PConfig.php b/include/Core/PConfig.php index 1d0f7fc82c..4523045f60 100644 --- a/include/Core/PConfig.php +++ b/include/Core/PConfig.php @@ -123,9 +123,9 @@ class PConfig { global $a; - if (self::get($uid, $family, $key) === $value) { - return true; - } + if (self::get($uid, $family, $key) === $value) { + return true; + } // manage array value $dbvalue = (is_array($value)?serialize($value):$value);