From dcbeeb43e242f7d60c0aee4b5d308cc8af9fc667 Mon Sep 17 00:00:00 2001 From: zgrguric Date: Fri, 27 Oct 2023 08:56:30 +0200 Subject: [PATCH] Define return variable in receive() --- lib/Client.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Client.php b/lib/Client.php index 1f46ab1..5d80e11 100644 --- a/lib/Client.php +++ b/lib/Client.php @@ -212,7 +212,8 @@ public function receive() { $filter = $this->options['filter']; $return_obj = $this->options['return_obj']; - + $return = null; + if (!$this->isConnected()) { $this->connect(); }