X-Git-Url: http://git.datanom.net/qtadmin.git/blobdiff_plain/af31b70b41a9582334862ebdd1abe54d3fc0d685..2b099ad2fc3663697e45dd16f4b82341e0267c86:/quarantine.php diff --git a/quarantine.php b/quarantine.php index 14e07e7..788f78a 100644 --- a/quarantine.php +++ b/quarantine.php @@ -22,7 +22,7 @@ $mail_id = urldecode($id); $mail = unserialize($_SESSION['mailInfo']["$mail_id"]); - if (true == $util->authorized($mail->recipient)) { + if (is_object($mail) && true == $util->authorized($mail->recipient)) { $secret_id = $mail->secret_id; $recipient = $mail->recipient; @@ -84,7 +84,7 @@ $error = array(); foreach ($marked as $mail_id) { $mail = $DB->getMail($mail_id); - if (true == $util->authorized($mail->recipient)) { + if (is_object($mail) && true == $util->authorized($mail->recipient)) { $query[] = "delete from msgs where mail_id = '$mail_id'"; $query[] = "delete from msgrcpt where mail_id = '$mail_id'"; $query[] = "delete from quarantine where mail_id = '$mail_id'";