Referal system refactured (and some parts fixed), wrapper function introduced:
[mailer.git] / inc / modules / admin / what-config_birthday.php
index cac121f34ca9c2178db4b31b3bba2aa2f3878d6c..83c2c54b49181c2632c8208f760154ad4d2f2773 100644 (file)
@@ -48,13 +48,13 @@ if (isFormSent()) {
        adminSaveSettingsFromPostData();
 } else {
        // Init all other template entries
-       foreach (array('active_y','active_n','mode_direct','mode_ref') as $entry) {
+       foreach (array('active_y','active_n') as $entry) {
                $content[$entry] = '';
        } // END - foreach
 
        // Set current selections
-       foreach (array('active','mode') as $entry) {
-               $content[$entry . '_' . strtolower(getConfig('birthday_' . $entry))] = ' checked="checked"';
+       foreach (array('active') as $entry) {
+               $content['birthday_' . $entry . '_' . strtolower(getConfig('birthday_' . $entry))] = ' checked="checked"';
        } // END - foreach
 
        // Display form