- // Prepare data for the template
- define('__POINTS_VALUE', getConfig('birthday_points'));
- switch (getConfig('birthday_active'))
- {
- case 'Y':
- $content['active_yes'] = ' checked="checked"';
- $content['active_no'] = '';
- break;
-
- case 'N':
- $content['active_yes'] = '';
- $content['active_no'] = ' checked="checked"';
- break;
- }
- switch (getConfig('birthday_mode'))
- {
- case 'DIRECT':
- $content['mode_direct'] = ' checked="checked"';
- $content['mode_ref'] = '';
- break;
+ // Init all other template entries
+ foreach (array('active_y','active_n') as $entry) {
+ $content[$entry] = '';
+ } // END - foreach