X-Git-Url: http://git.datanom.net/qtadmin.git/blobdiff_plain/181e3b1fd8edb3f279d1a6ebb6190dfc59a918b0..2b099ad2fc3663697e45dd16f4b82341e0267c86:/show_headers.php 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; }