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(); }