- switch (getConfig('guest_stats'))
- {
- case 'MEMBERS':
- define('__MEMBERS_RADIO', ' selected='selected'');
- define('__MODULES_RADIO', '');
- define('__INACTIVE_RADIO', '');
- break;
-
- case 'MODULES':
- define('__MEMBERS_RADIO', '');
- define('__MODULES_RADIO', ' selected='selected'');
- define('__INACTIVE_RADIO', '');
- break;
-
- case 'INACTIVE':
- define('__MEMBERS_RADIO', '');
- define('__MODULES_RADIO', '');
- define('__INACTIVE_RADIO', ' selected='selected'');
- break;
- }
+ foreach (array('members','modules','inactive') as $entry) {
+ $content['guest_stats_' . $entry] = '';
+ } // END - foreach