]> git.datanom.net - qtadmin.git/blobdiff - show_headers.php
add more debug info
[qtadmin.git] / show_headers.php
index 0ff9a6e02f805b418f063d4c6ae55c6f74eef16e..34ca0657dfdc4858d0d7e4d065333ad4bad23f98 100644 (file)
@@ -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');
     }
This page took 0.0293 seconds and 5 git commands to generate.