]> git.mxchange.org Git - friendica.git/blobdiff - include/Core/Config.php
Prevent a memory Access Violation when the database isn't connected
[friendica.git] / include / Core / Config.php
index e82094417f27ebcff78edbc67565ef186e30ee86..6ef394f2f1cb8cd65aa233eb5d1e1e65b340fb8e 100644 (file)
@@ -126,10 +126,6 @@ class Config {
        public static function set($family, $key, $value) {
                global $a;
 
-               if (self::get($family, $key) == $value) {
-                       return true;
-               }
-
                $a->config[$family][$key] = $value;
 
                // manage array value
@@ -145,7 +141,7 @@ ON DUPLICATE KEY UPDATE `v` = '%s'",
                );
                if ($ret) {
                        return $value;
-        }
+               }
                return $ret;
        }