]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-config_holiday.php
Renamed ifSqlHasZeroNums() to ifSqlHasZeroNumRows() and improved some queries.
[mailer.git] / inc / modules / admin / what-config_holiday.php
index a4f93e62d179fcde0f5dd03877488f31357d6202..69bc2f8dbb12686fbdac4566299988820732ef9c 100644 (file)
@@ -16,7 +16,7 @@
  * $Author::                                                          $ *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
- * Copyright (c) 2009 - 2011 by Mailer Developer Team                   *
+ * Copyright (c) 2009 - 2015 by Mailer Developer Team                   *
  * For more information visit: http://mxchange.org                      *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
@@ -43,7 +43,7 @@ if ((!defined('__SECURITY')) || (!isAdmin())) {
 // Add description as navigation point
 addYouAreHereLink('admin', __FILE__);
 
-if (isFormSent()) {
+if (isFormSent('save_config')) {
        // Save settings
        adminSaveSettingsFromPostData();
 } else {
@@ -56,12 +56,10 @@ if (isFormSent()) {
        } // END - foreach
 
        // Set all entries
-       foreach (array('holiday_mode') as $entry) {
-               $content[$entry . '_' . strtolower(getConfig($entry))] = ' checked="checked"';
-       } // END - if
+       $content = merge_array($content, getCheckedConfig(array('holiday_mode')));
 
        // Load form template
-       loadTemplate('admin_config_holiday', false, $content);
+       loadTemplate('admin_config_holiday', FALSE, $content);
 }
 
 // [EOF]