Browse Source

Settings save: Switch from strict to fuzzy comparison

pull/2862/head
Hypolite Petovan 5 years ago
parent
commit
f9d713b228
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      include/Core/Config.php
  2. +1
    -1
      include/Core/PConfig.php

+ 1
- 1
include/Core/Config.php View 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;
}


+ 1
- 1
include/Core/PConfig.php View 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;
}


Loading…
Cancel
Save