X-Git-Url: http://git.datanom.net/qtadmin.git/blobdiff_plain/3039de292a8f75426d4b2c0ea70a00b75bda5b02..c49d593ff36278c6c64d0a06bd8a0b6a0b4d2270:/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; }