From b919c256149c0149a6292291193bf011fc420d83 Mon Sep 17 00:00:00 2001 From: VE10-Sanjeev Date: Wed, 10 Apr 2024 10:44:37 +0000 Subject: [PATCH] Eror color : ps --- app/Controllers/Notifications.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Controllers/Notifications.php b/app/Controllers/Notifications.php index 9b441de7..de014307 100755 --- a/app/Controllers/Notifications.php +++ b/app/Controllers/Notifications.php @@ -117,7 +117,7 @@ class Notifications extends BaseController $receiving_status = $success['receiving_status']; $parents_status = $success['receiving_status']; $history_msg = strtolower(gettype($success)) == "string" ? $success : json_encode($success['reponse']); - $tag = (int)$receiving_status === 0 ? 'success' : 'error' ; + $tag = (int)$receiving_status === 1 ? 'success' : 'error' ; session()->setFlashdata($tag, 'Message : ' . $success['message']); $this->logger->info("Whatsapp : Reponse = " . $success['message']); } catch (\Exception $e) {