]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-config_register.php
Filters for configurable userid exclusion added:
[mailer.git] / inc / modules / admin / what-config_register.php
index f4970baea360036eb519873c4f7185478e3a6e89..bd94bfd0c794d0233b8f259a40ae614802e2888e 100644 (file)
@@ -43,8 +43,8 @@ if ((!defined('__SECURITY')) || (!isAdmin())) {
 // Add description as navigation point
 addYouAreHereLink('admin', __FILE__);
 
-// Do we want to save changes?
-if (isFormSent()) {
+// Save changes?
+if (isFormSent('save_config')) {
        // Begin counting
        $count = 0;
 
@@ -52,7 +52,11 @@ if (isFormSent()) {
        foreach (postRequestElement('sel') as $id => $value) {
                // Update database
                SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_must_register` SET `field_required`='%s' WHERE `id`=%s AND `field_required` != '%s' LIMIT 1",
-                       array($value, bigintval($id), $value),__FILE__, __LINE__);
+                       array(
+                               $value,
+                               bigintval($id),
+                               $value
+                       ),__FILE__, __LINE__);
 
                // Get affected rows
                $count += SQL_AFFECTEDROWS();