]> git.mxchange.org Git - friendica.git/blobdiff - include/Core/Config.php
Disable richtext editor for frio - followup for #2938
[friendica.git] / include / Core / Config.php
index 76a0abe24162a494ab306072e3d0c58efd0d7fb1..a5eca0570a56efc86f1ecf26ed4dae91f71e07df 100644 (file)
@@ -134,7 +134,7 @@ class Config {
                $a->config[$family][$key] = $value;
 
                // manage array value
-               $dbvalue = (is_array($value) ? serialize($value):$value);
+               $dbvalue = (is_array($value) ? serialize($value) : $value);
                $dbvalue = (is_bool($dbvalue) ? intval($dbvalue) : $dbvalue);
 
                if (is_null($stored)) {
@@ -144,7 +144,7 @@ class Config {
                                dbesc($dbvalue),
                                dbesc($dbvalue)
                        );
-               } elseif ($ret[0]['v'] != $dbvalue) {
+               } else {
                        $ret = q("UPDATE `config` SET `v` = '%s' WHERE `cat` = '%s' AND `k` = '%s'",
                                dbesc($dbvalue),
                                dbesc($family),