]> git.mxchange.org Git - friendica.git/commitdiff
Settings save: Switch from strict to fuzzy comparison
authorHypolite Petovan <ben.lort@gmail.com>
Sat, 22 Oct 2016 03:23:44 +0000 (23:23 -0400)
committerHypolite Petovan <ben.lort@gmail.com>
Sat, 22 Oct 2016 03:23:44 +0000 (23:23 -0400)
include/Core/Config.php
include/Core/PConfig.php

index 2f99c1aec4ffa7a79a65834ab888bf9d67e0f66b..e82094417f27ebcff78edbc67565ef186e30ee86 100644 (file)
@@ -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;
                }
 
index 4523045f60e13a228ae67509d433f30917c3e392..172a83e91d3e6a0be0f25fa412cb882443dc49e1 100644 (file)
@@ -123,7 +123,7 @@ class PConfig {
 
                global $a;
 
-               if (self::get($uid, $family, $key) === $value) {
+               if (self::get($uid, $family, $key) == $value) {
                        return true;
                }