]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-config_refid.php
Even more double->single converted
[mailer.git] / inc / modules / admin / what-config_refid.php
index ca521c2e58f275d5b84657ea2e98f9bdba413813..03833c67241566a2c5ce42cc3e171eb517ba9866 100644 (file)
@@ -16,7 +16,7 @@
  * $Author::                                                          $ *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
- * Copyright (c) 2009 - 2012 by Mailer Developer Team                   *
+ * Copyright (c) 2009 - 2013 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 data
        adminSaveSettingsFromPostData();
 } else {
@@ -56,9 +56,7 @@ if (isFormSent()) {
        } // END - foreach
 
        // Set all selections
-       foreach (array('refid_target', 'select_user_zero_refid') as $entry) {
-               $content[$entry . '_' . strtolower(getConfig($entry))] = ' selected="selected"';
-       } // END - foreach
+       $content = merge_array($content, getSelectedConfig(array('refid_target', 'select_user_zero_refid')));
 
        // Load template
        loadTemplate('admin_config_refid', FALSE, $content);