Re: [PHP] 1 last error to fix before the application is done!

2008-10-14 Thread Yeti
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

Re: [PHP] 1 last error to fix before the application is done!

2008-10-14 Thread Jason Pruim
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

Re: [PHP] 1 last error to fix before the application is done!

2008-10-14 Thread Alan Boudreault
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

Re: [PHP] 1 last error to fix before the application is done!

2008-10-14 Thread Jochem Maas
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