X-Git-Url: http://git.datanom.net/qtadmin.git/blobdiff_plain/af31b70b41a9582334862ebdd1abe54d3fc0d685..9e811c4fe80a993af62021cc75e006a9ee18f179:/message_view.php diff --git a/message_view.php b/message_view.php index e81d984..aa276d8 100644 --- a/message_view.php +++ b/message_view.php @@ -13,7 +13,7 @@ $mail = unserialize($_SESSION['mailInfo'][$id]); - if (false == $util->authorized($mail->recipient)) { + if (! is_object($mail) || false == $util->authorized($mail->recipient)) { header('Location: index.php'); exit; }