syntax problems with checking for constants in an array?
if ($user[membergroupids] == USERGROUP_A) always returns true, but
if ($user[membergroupids] == 'USERGROUP_A') and
if ($user[membergroupids] == " . USERGROUP_A . ") always returns false
If I just go
if ($user[membergroupids] == '2'), it works as it should.
Similarly, later on,
if ($groupid != USERGROUP_A) branches properly.
WTF am I doing wrong?
|