Quote (vittujenkevat @ 6 Jul 2012 15:19)
At home now, but something like this:
Error message:
PHP Notice: in file x on line 19: Undefined offset: 107
Where 107 is the UserId of logged in user.
Line 19 from file x:
if($this->array[$_SESSION['UserId']]=="registered"]){
}
The problem occurs when the UserId is not found as key of array, but when found it works just as wanted.
https://www.google.com/search?q=is+key+array+phpGoogling is so freaking hard.
This post was edited by eagl3s1ght on Jul 6 2012 08:03am