From 56a529c85259ffb92c188f3a8a70a91bb9d466e5 Mon Sep 17 00:00:00 2001 From: Marko <52066939+HeX87@users.noreply.github.com> Date: Fri, 1 Mar 2024 16:15:21 +0100 Subject: [PATCH] update slack msg --- src/EventSubscriber/SlackNotifySubscriber.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/EventSubscriber/SlackNotifySubscriber.php b/src/EventSubscriber/SlackNotifySubscriber.php index f546ee3..ddf2bb6 100644 --- a/src/EventSubscriber/SlackNotifySubscriber.php +++ b/src/EventSubscriber/SlackNotifySubscriber.php @@ -69,9 +69,9 @@ class SlackNotifySubscriber implements EventSubscriberInterface ]); $msg = "Bestellung {$order->getOrderId()}: \n"; - ($item['marke'] ?: $msg .= $item['marke'] . '-'); + $msg .= $item['marke'] . '-'; $msg .= $item['name']; - ($item['han'] ?: $msg .= '-' . $item['han']); + $msg .= '-' . $item['han']; $msg .= ' - *' . $item['menge'] . "* \n"; if ($order->getStatus() == 1) {