X-Git-Url: http://git.datanom.net/qtadmin.git/blobdiff_plain/af31b70b41a9582334862ebdd1abe54d3fc0d685..2ce6d5f73abf5a741052e8904a644193652b7ef2:/message_view.php diff --git a/message_view.php b/message_view.php index e81d984..93cc339 100644 --- a/message_view.php +++ b/message_view.php @@ -13,8 +13,8 @@ $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; } @@ -95,7 +95,7 @@ echo ''; echo $util->getFooter(); } else if ($loggedIn) { - header('Location: index.php'); + header('Location: qtadmin.php'); } else { header('Location: auth.php'); }