Good morning everyone!
I think I might be having a "to early in the morning/not enough
caffeine" moment... But I am down to 1 error on my timecard
application that I would like to clean up. It's a small undefined
index error, and the program works jsut fine the way it is, but why
leave an
You might also want to try array_key_exists
if (array_key_exists('loggedin', $_SESSION['userInfo'])) {
// do something with $_SESSION['userInfo']['loggedin']
}
//A yeti
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Oct 14, 2008, at 8:28 AM, Jochem Maas wrote:
Jason Pruim schreef:
Good morning everyone!
I think I might be having a "to early in the morning/not enough
caffeine" moment... But I am down to 1 error on my timecard
application
that I would like to clean up. It's a small undefined index err
You should have a test like this:
if ( ($_SESSION['userInfo']) && ($_SESSION['userInfo']['loggedin'] ==
TRUE)) {
I'm not sure about your script, i just see a small part.
Alan
Jason Pruim wrote:
Good morning everyone!
I think I might be having a "to early in the morning/not enough
caffein
Jason Pruim schreef:
> Good morning everyone!
>
> I think I might be having a "to early in the morning/not enough
> caffeine" moment... But I am down to 1 error on my timecard application
> that I would like to clean up. It's a small undefined index error, and
> the program works jsut fine the way
5 matches
Mail list logo