$parentID = null;
$parentType = null;
$user;
if(!isLoggedIn())
{
header("Location: ".$this->getHeader("community","login",null,null,null,null,"mustBeLoggedIn"));die;
}
else
{
$user = getSessionUser();
}
if(array_key_exists("id2",$_GET))
{
if(ctype_digit($_GET["id2"]))
{
$parentID = $_GET["id2"];
}
}
if(array_key_exists("id1",$_GET))
{
if($_GET["id1"] == "photo" || $_GET["id1"] == "gig" || $_GET["id1"] == "diary" || $_GET["id1"] == "news") {
$parentType = $_GET["id1"];
}
}
//print $parentID.$parentType;
if(!isset($parentID) || !isset($parentType))
{
header("Location: ". $this->getHeader("pictures",null,null,null,null,null,"badPhotoGig")); die;
}
the above code seems to have some error in it somewhere...
the block of code inside the last if statement is executed whenever the print statement is commented out, but is not executed when the script prints out $parentID and $parentType.
anyone have any ideas why?
cheers
stew