X-Git-Url: http://git.datanom.net/qtadmin.git/blobdiff_plain/3039de292a8f75426d4b2c0ea70a00b75bda5b02..0da9e6e7d82b2cb758626d1ee4eb6b3297d667b1:/mail_report.php diff --git a/mail_report.php b/mail_report.php index 60405f7..f8ff4ac 100644 --- a/mail_report.php +++ b/mail_report.php @@ -11,7 +11,7 @@ $id = $_GET['id']; $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; }