]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-config_refid.php
Fixed also usage of previously renamed fields as they must be the same
[mailer.git] / inc / modules / admin / what-config_refid.php
index ca521c2e58f275d5b84657ea2e98f9bdba413813..466e5737fd464b1ec0a0e4095c8e00f3bef6f0a9 100644 (file)
@@ -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);