X-Git-Url: http://git.datanom.net/qtadmin.git/blobdiff_plain/af31b70b41a9582334862ebdd1abe54d3fc0d685..2b099ad2fc3663697e45dd16f4b82341e0267c86:/show_headers.php?ds=inline 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; }