From c9c408d5e5aeb3c9f29af44c3a36845255d2bb9d Mon Sep 17 00:00:00 2001 From: Michael Date: Fri, 20 Dec 2019 21:47:10 +0000 Subject: [PATCH] Fix notice because of a missing subject --- src/Worker/OnePoll.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Worker/OnePoll.php b/src/Worker/OnePoll.php index 3dbc0cccd1..f2ba89adf7 100644 --- a/src/Worker/OnePoll.php +++ b/src/Worker/OnePoll.php @@ -562,7 +562,7 @@ class OnePoll } // Decoding the header - $subject = imap_mime_header_decode($meta->subject); + $subject = imap_mime_header_decode($meta->subject ?? ''); $datarray['title'] = ""; foreach ($subject as $subpart) { if ($subpart->charset != "default") { -- 2.39.5