diff --git a/imap.php b/imap.php index f8e3008..a9653fa 100644 --- a/imap.php +++ b/imap.php @@ -506,7 +506,7 @@ class imap imap_errors(); $content = @imap_body (self::$instance[$this->mailbox], $msgno); $errors = imap_errors (); - if ($errors !== false || $content === "") + if ($errors !== false) throw new \Exception ("Mail not found", 404); return $content; }