From 55bf8b9eabcf615de67c77630d200fa926aa2300 Mon Sep 17 00:00:00 2001 From: Daniel Seifert Date: Thu, 12 Jan 2023 23:04:50 +0100 Subject: [PATCH] fix successfully sent message --- src/Application/Controller/Admin/AdminOrder.php | 2 +- src/Application/Controller/Admin/AdminUser.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Application/Controller/Admin/AdminOrder.php b/src/Application/Controller/Admin/AdminOrder.php index bae97df..54fd1ae 100644 --- a/src/Application/Controller/Admin/AdminOrder.php +++ b/src/Application/Controller/Admin/AdminOrder.php @@ -66,7 +66,7 @@ class AdminOrder extends AdminController { $sms = $this->getSms($this->getMessageBody()); return $sms->sendOrderMessage($this->item) ? - (string) $this->getSuccessSentMessage($sms) : + $this->getSuccessSentMessage($sms)->getMessage() : $this->getUnsuccessfullySentMessage($sms); } diff --git a/src/Application/Controller/Admin/AdminUser.php b/src/Application/Controller/Admin/AdminUser.php index 94fca8d..699d477 100644 --- a/src/Application/Controller/Admin/AdminUser.php +++ b/src/Application/Controller/Admin/AdminUser.php @@ -68,7 +68,7 @@ class AdminUser extends AdminController { $sms = $this->getSms($this->getMessageBody()); return $sms->sendUserAccountMessage($this->item) ? - (string) $this->getSuccessSentMessage($sms) : + $this->getSuccessSentMessage($sms)->getMessage() : $this->getUnsuccessfullySentMessage($sms); }