X-Git-Url: http://git.datanom.net/qtadmin.git/blobdiff_plain/3039de292a8f75426d4b2c0ea70a00b75bda5b02..HEAD:/mail_report.php diff --git a/mail_report.php b/mail_report.php index 60405f7..3607ba2 100644 --- a/mail_report.php +++ b/mail_report.php @@ -11,8 +11,8 @@ $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; } @@ -139,7 +139,7 @@ echo ''; echo $util->getFooter(); } else if ($loggedIn) { - header('Location: index.php'); + header('Location: qtadmin.php'); } else { header('Location: auth.php'); }