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