X-Git-Url: http://git.datanom.net/qtadmin.git/blobdiff_plain/af31b70b41a9582334862ebdd1abe54d3fc0d685..70c7fd5765720621553b3ddaff1009c795f49a76:/show_headers.php diff --git a/show_headers.php b/show_headers.php index 0ff9a6e..34ca065 100644 --- a/show_headers.php +++ b/show_headers.php @@ -11,8 +11,8 @@ $id = $_GET['id']; $mail = unserialize($_SESSION['mailInfo'][$id]); - if (false == $util->authorized($mail->recipient)) { - header('Location: index.php'); + if (! is_object($mail) || false == $util->authorized($mail->recipient)) { + header('Location: qtadmin.php'); exit; } @@ -56,7 +56,7 @@ echo $output; echo $util->getFooter(); } else if ($loggedIn) { - header('Location: index.php'); + header('Location: qtadmin.php'); } else { header('Location: auth.php'); }