]> git.datanom.net - qtadmin.git/blobdiff - mail_report.php
add more debug info
[qtadmin.git] / mail_report.php
index 60405f7d124df6aab50cbc9684dc8a7ac5c13945..3607ba2e1c8772ae34353e1b298b821fef2e81c8 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;
         }
 
         echo '</table>';
         echo $util->getFooter();
     } else if ($loggedIn) {
-        header('Location: index.php');
+        header('Location: qtadmin.php');
     } else {
         header('Location: auth.php');
     }
This page took 0.034378 seconds and 5 git commands to generate.