X-Git-Url: http://git.datanom.net/qtadmin.git/blobdiff_plain/4e417241d6fd22ee7cefdf179d9e9a5d5ed49e5e..25420105abd84bf5e0f934f63b0552bbc14e0d4a:/quarantine.php diff --git a/quarantine.php b/quarantine.php index 7bda56d..dd7fa1a 100644 --- a/quarantine.php +++ b/quarantine.php @@ -83,8 +83,8 @@ $query = array(); $error = array(); foreach ($marked as $mail_id) { - $mail = $DB->getMail($mail_id); - if (is_object($mail) && true == $util->authorized($mail->recipient)) { + $recipient = $DB->getRecipient($mail_id); + if ($recipient && true == $util->authorized($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'";