X-Git-Url: http://git.datanom.net/qtadmin.git/blobdiff_plain/af31b70b41a9582334862ebdd1abe54d3fc0d685..70c7fd5765720621553b3ddaff1009c795f49a76:/message_view.php?ds=inline 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'); }