From 5f82d2974ba92c48978f4530808bcb59181df669 Mon Sep 17 00:00:00 2001 From: Marcel Folaron Date: Thu, 8 Feb 2024 19:14:14 -0500 Subject: [PATCH] fix error on empty status --- app/Domain/Notifications/Services/Messengers.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Domain/Notifications/Services/Messengers.php b/app/Domain/Notifications/Services/Messengers.php index 55312dd854..6d88549fe2 100644 --- a/app/Domain/Notifications/Services/Messengers.php +++ b/app/Domain/Notifications/Services/Messengers.php @@ -294,7 +294,7 @@ public function prepareMessage(NotificationModel $notification): array 'fields' => array( [ 'title' => $this->language->__("headlines.project_with_name") . ' ' . $this->projectName, - 'value' => $this->language->__("label.todo_status") . ': ' . $statusLabelsArray[$status]['name'] ?? '', + 'value' => $this->language->__("label.todo_status") . ': ' . empty($statusLabelsArray[$status]) ? '' : $statusLabelsArray[$status]['name'], 'short' => false, ], ),