$id = $_GET['id'];
$mail = unserialize($_SESSION['mailInfo'][$id]);
- if (false == $util->authorized($mail->recipient)) {
- header('Location: index.php');
+ if (! is_object($mail) || false == $util->authorized($mail->recipient)) {
+ header('Location: qtadmin.php');
exit;
}
echo $output;
echo $util->getFooter();
} else if ($loggedIn) {
- header('Location: index.php');
+ header('Location: qtadmin.php');
} else {
header('Location: auth.php');
}