Corrected use of strstr and simplified parentheses:
if ((strstr($user['U_Groups'],'/-3-/') || strstr($user['U_Groups'],'/-5-/')) && $user['U_Status'] != 'Administrator' && $user['U_Status'] != 'Moderator') {
Alternate way:
$in_3 = strstr($user['U_Groups'],'/-3-/');
$in_5 = strstr($user['U_Groups'],'/-5-/');
$is_mod = $user['U_Status'] == 'Moderator';
$is_admin = $user['U_Status'] == 'Administrator';
if (($in_3 or $in_5) and !$is_admin and !$is_mod) {
Last edited by Dave_L; 04/23/2003 8:49 PM.