Closed torvista closed 4 years ago
$_SESSION
variables can be any type required and the $_SESSION['posm_include_disabled']
is always set to a binary value, so that second clause will set $include_disabled
to the current boolean value for that session variable.
Ok, I get it thanks.
While fighting with something else and using your code as reference, I see this:
As far as I can find out, SESSION variables are always strings, so the first clause would set $include_disabled as true (boolean), the second clause would set $include_disabled as 'true' (string), the third clause would set $include_disabled as true (boolean).
Should not the second clause be of a similar structure as the other two?