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

From: Date: Tue, 14 Oct 2008 12:33:09 +0000
Subject: Re: 1 last error to fix before the application is done!
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-281855@lists.php.net to get a copy of this message
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 error, and the program works jsut fine the way it is, but why leave an error if you don't need to? :) Here is the error: [Tue Oct 14 08:19:47 2008] [error] PHP Notice: Undefined index: userInfo in /Volumes/RAIDer/webserver/Documents/dev/stimecard/inc/function/authentication.func.php on line 22 and here is the relevant code:
======> Line 22        if($_SESSION['userInfo']['loggedin'] == TRUE) {
if(isset($_SESSION['userInfo']['loggedin']) && $_SESSION['userInfo']['loggedin'] == TRUE) {
As usual Jochem... You hit the nail on the head... Cleaned up my error perfectly!
... now go and walk the plank.
But... But... But... there's SHARKS down there.... :P -- Jason Pruim Raoset Inc. Technology Manager MQC Specialist 11287 James St Holland, MI 49424 www.raoset.com japruim@raoset.com

« previous php.general (#281855) next »