]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-config_register.php
Bug 'return is not bool' fixed
[mailer.git] / inc / modules / admin / what-config_register.php
index 401ea9c85cf1ea83f96abe2ed82c3ef8745b9578..2249983a5666e1ded68cf93e08f46d911422288b 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /************************************************************************
- * MXChange v0.2.1                                    Start: 07/10/2004 *
- * ===============                              Last change: 07/10/2004 *
+ * Mailer v0.2.1-FINAL                                Start: 07/10/2004 *
+ * ===================                          Last change: 07/10/2004 *
  *                                                                      *
  * -------------------------------------------------------------------- *
  * File              : what-config_register.php                         *
@@ -46,7 +46,7 @@ addMenuDescription('admin', __FILE__);
 
 // Do we want to save changes?
 if (isFormSent()) {
-       foreach (postRequestElement('sel') as $id => $value) {
+       foreach (postRequestParameter('sel') as $id => $value) {
                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__);
        }
@@ -66,9 +66,9 @@ while ($content = SQL_FETCHARRAY($result)) {
 
        // @TODO Move this HTML code into a template
        $OUT .= "<tr>
-  <td align=\"center\" class=\"switch_sw".$content['sw']." bottom2 right2\">".$content['id']."</td>
-  <td class=\"switch_sw".$content['sw']." bottom2 right2\">&nbsp;&nbsp;".$content['field_name']."</td>
-  <td align=\"center\" class=\"switch_sw".$content['sw']." bottom2 right2\">
+  <td align=\"center\" class=\"switch_sw".$content['sw']." bottom right\">".$content['id']."</td>
+  <td class=\"switch_sw".$content['sw']." bottom right\">&nbsp;&nbsp;".$content['field_name']."</td>
+  <td align=\"center\" class=\"switch_sw".$content['sw']." bottom right\">
     ".$content['selection']."
   </td>
 </tr>\n";