From: Hypolite Petovan Date: Sat, 22 Oct 2016 03:23:44 +0000 (-0400) Subject: Settings save: Switch from strict to fuzzy comparison X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=f9d713b228873436e6fd3f38c3cda374a582ac94;p=friendica.git Settings save: Switch from strict to fuzzy comparison --- diff --git a/include/Core/Config.php b/include/Core/Config.php index 2f99c1aec4..e82094417f 100644 --- a/include/Core/Config.php +++ b/include/Core/Config.php @@ -126,7 +126,7 @@ class Config { public static function set($family, $key, $value) { global $a; - if (self::get($family, $key) === $value) { + if (self::get($family, $key) == $value) { return true; } diff --git a/include/Core/PConfig.php b/include/Core/PConfig.php index 4523045f60..172a83e91d 100644 --- a/include/Core/PConfig.php +++ b/include/Core/PConfig.php @@ -123,7 +123,7 @@ class PConfig { global $a; - if (self::get($uid, $family, $key) === $value) { + if (self::get($uid, $family, $key) == $value) { return true; }