From 8f8988889e93c90bba5c8d2d0bf7c8fbbf1bd377 Mon Sep 17 00:00:00 2001 From: "Gurdeep Bagga (Guru)" Date: Thu, 4 Jul 2024 01:21:06 +1000 Subject: [PATCH] - Correct message to send in case of no updates. --- src/Update.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Update.php b/src/Update.php index 7eaff98..40cb919 100644 --- a/src/Update.php +++ b/src/Update.php @@ -75,7 +75,7 @@ public function getUpdates() } } - return $this->addResponse(0, 'OK', $updatesSince); + return $this->addResponse(0, (count($updatesSince) > 0) ? 'OK' : 'No Updates!', $updatesSince); } return $this->addResponse(0, 'No Updates!');