From f9d713b228873436e6fd3f38c3cda374a582ac94 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Fri, 21 Oct 2016 23:23:44 -0400 Subject: [PATCH] Settings save: Switch from strict to fuzzy comparison --- include/Core/Config.php | 2 +- include/Core/PConfig.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; }