MDL-79539 messageinbound: avoiding a null parameter value

This commit is contained in:
meirzamoodle
2023-10-02 20:51:33 +07:00
committed by Meirza
parent b3ea1a9d5b
commit c29a812323
@@ -829,7 +829,7 @@ class manager {
// An auto-reply may itself include the Bulk Precedence.
$precedence = $messagedata->getHeaderText(0, \Horde_Imap_Client_Data_Fetch::HEADER_PARSE)->getValue('Precedence');
$isbulk = $isbulk || strtolower($precedence) == 'bulk';
$isbulk = $isbulk || strtolower($precedence ?? '') == 'bulk';
// If the X-Autoreply header is set, and not 'no', then this is an automatic reply.
$autoreply = $messagedata->getHeaderText(0, \Horde_Imap_Client_Data_Fetch::HEADER_PARSE)->getValue('X-Autoreply');