// Determine which stats are wanted and set mode and title for the link below stats block
if (isGetRequestElementSet('do')) {
// Use it from get value
- $do = getRequestElement('do');
+ $do = strtoupper(getRequestElement('do'));
} // END - if
switch ($do) {
- case 'members' :
- $lmode = 'modules';
+ case 'MEMBERS' :
+ $lmode = 'MODULES';
break;
- case 'modules' :
- $lmode = 'members';
+ case 'MODULES' :
+ $lmode = 'MEMBERS';
break;
- case 'inactive':
- $lmode = 'inactive';
+ case 'INACTIVE':
+ $lmode = 'INACTIVE';
break;
default:
} // END - switch
// Set link title
-$ltitle = '{--GUEST_STATS_' . strtoupper($lmode) . '--}';
+$ltitle = '{--GUEST_STATS_' . $lmode . '--}';
// @TODO This can be rewritten in a dynamic include
switch (strtoupper($do)) {
} // END - while
} // END - if
- if ((!SQL_HASZERONUMS($guest_t10)) || (!SQL_HASZERONUMS($mem_t10))) {
+ // Is something generated?
+ if (!empty($OUT)) {
// Prepare content
$content = array(
'rows' => $OUT,