]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-config_autopurge.php
Fix for missing array element 'mails_sent'
[mailer.git] / inc / modules / admin / what-config_autopurge.php
index 93e24239cdece47bb4e35beb80b8c81519a6f274..40c43c5fdf23a47e930e5ca2504d84d6e2aea8fd 100644 (file)
@@ -48,7 +48,7 @@ if (isFormSent()) {
        adminSaveSettingsFromPostData();
 } else {
        // Output de-/activation selections
-       $content['ap_inactive_selection']    = addSelectionBox('yn', getConfig('autopurge_inactive')   , 'autopurge_inactive');
+       $content['ap_inactive_selection']    = addSelectionBox('yn', getAutopurgeInactive()   , 'autopurge_inactive');
        $content['ap_unconfirmed_selection'] = addSelectionBox('yn', getConfig('autopurge_unconfirmed'), 'autopurge_unconfirmed');
        $content['ap_tasks_selection']       = addSelectionBox('yn', getConfig('autopurge_tasks')      , 'autopurge_tasks');
        $content['ap_del_mails_selection']   = addSelectionBox('yn', getConfig('ap_del_mails')         , 'ap_del_mails');
@@ -69,13 +69,6 @@ if (isFormSent()) {
        // Mail confirmation links
        $content['auto_purge'] = createConfigurationTimeSelections('auto_purge', 'MWD');
 
-       // Prepare more Y/N selections
-       foreach (array('auto_purge_active') as $entry) {
-               $content[$entry . '_y'] = '';
-               $content[$entry . '_n'] = '';
-               $content[$entry . '_' . strtolower(getConfig('auto_purge_active'))] = ' checked="checked"';
-       } // END - foreach
-
        // Output template
        loadTemplate('admin_config_autopurge', false, $content);
 }