Bug with multiple registration of filters fixed (see fix_filters.php for details)
[mailer.git] / inc / mysql-manager.php
index 491bf29..23f4621 100644 (file)
@@ -1796,18 +1796,18 @@ function updateConfiguration ($entries, $values, $updateMode='') {
                        if (!empty($updateMode)) {
                                // Update entry
                                // @TODO Find a way for updating $_CONFIG here
-                               $all .= sprintf("%s=%s%s%s,", $entry, $entry, $updateMode, (float)$values[$idx]);
+                               $all .= sprintf("`%s`=%s%s%s,", $entry, $entry, $updateMode, (float)$values[$idx]);
                        } else {
                                // Check if string or number
                                if (($values[$idx] + 0) === $values[$idx]) {
                                        // Number detected
-                                       $all .= sprintf("%s=%s,", $entry, (float)$values[$idx]);
+                                       $all .= sprintf("`%s`=%s,", $entry, (float)$values[$idx]);
                                } elseif ($values[$idx] == 'UNIX_TIMESTAMP()') {
                                        // Function UNIX_TIMESTAMP() detected
-                                       $all .= sprintf("%s=%s,", $entry, $values[$idx]);
+                                       $all .= sprintf("`%s`=%s,", $entry, $values[$idx]);
                                } else {
                                        // String detected
-                                       $all .= sprintf("%s='%s',", $entry, SQL_ESCAPE($values[$idx]));
+                                       $all .= sprintf("`%s`='%s',", $entry, SQL_ESCAPE($values[$idx]));
                                }
                        }