X-Git-Url: http://git.datanom.net/qtadmin.git/blobdiff_plain/af31b70b41a9582334862ebdd1abe54d3fc0d685..26c51ad596c71fc8fe55873e70d70fa6328cea23:/show_headers.php?ds=sidebyside diff --git a/show_headers.php b/show_headers.php index 0ff9a6e..e025ccd 100644 --- a/show_headers.php +++ b/show_headers.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; }