Hi,

Yes sometimes it is treated as null. You should reconsider your code and use
empty() and not != "".

--
Merci de nous avoir choisi. - Thanks you for your choice.
Nicos - CHAILLAN Nicolas
[EMAIL PROTECTED]
[EMAIL PROTECTED]
www.GroupAKT.com - Hébergement Group.
www.WorldAKT.com - Hébergement de sites Internet
"Francis" <[EMAIL PROTECTED]> a écrit dans le message de news:
[EMAIL PROTECTED]
> 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?
>
>
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to