Settings save: Switch from strict to fuzzy comparison
This commit is contained in:
parent
9a59878190
commit
f9d713b228
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -123,7 +123,7 @@ class PConfig {
|
|||
|
||||
global $a;
|
||||
|
||||
if (self::get($uid, $family, $key) === $value) {
|
||||
if (self::get($uid, $family, $key) == $value) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue