From 87702f0e4c4c1ebb1d4160dfe18b5479cc8d1434 Mon Sep 17 00:00:00 2001 From: Ramon Gutierrez Date: Thu, 4 May 2023 17:41:19 +0800 Subject: [PATCH] Revert use of isEmpty on arraycollection on mqtt connector #730 --- src/Service/MQTTClient.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Service/MQTTClient.php b/src/Service/MQTTClient.php index 12973116..fc1d1493 100644 --- a/src/Service/MQTTClient.php +++ b/src/Service/MQTTClient.php @@ -43,7 +43,7 @@ class MQTTClient $new_sessions = []; $cust_user = $job_order->getCustomer()->getCustomerUser(); - if ($cust_user->isEmpty()) { + if (!empty($cust_user)) { $new_sessions = $cust_user->getMobileSessions(); }