Am I just being stupid or something?
| From: | Francis | Date: | Mon, 02 Sep 2002 09:06:11 +0000 |
| Subject: | Am I just being stupid or something? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-114886@lists.php.net to get a copy of this message | ||
Ok whats going on here:
echo "Location: ".$_SESSION["Project"]["location"];
// above echo's "Location: 0"
if($_SESSION["Project"]["location"] !=""){
if (checkAccess("folder", $_SESSION["Project"]["location"],
"create")){
newfile();
}else{
reportError(1, "Access Denied");
}
}else{
fatelError(1, "Session Location Error");
}
Ok $_SESSION["Project"]["location"] is set to 0 but for some reason it
always calls fatelError? even tho $_SESSION["Project"]["location"] is set to
0 can anyone see anything wrong? is 0 treated as null or something?