From dac8fb6c26a912196bb607a7654d504ada3d3fe4 Mon Sep 17 00:00:00 2001 From: Paul Rock Date: Sun, 3 Mar 2019 18:11:40 +0300 Subject: [PATCH] small fix of login method --- src/Client.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Client.php b/src/Client.php index 21cc980..6de32c9 100644 --- a/src/Client.php +++ b/src/Client.php @@ -397,11 +397,11 @@ class Client implements Interfaces\ClientInterface // Only tested with ROS pre 6.43, will test with post 6.43 => this could make legacy parameter obsolete? if ($legacyRetry && $this->isLegacy($response)) { $this->_config->set('legacy', true); - return $this->login(true); + return $this->login(); } // Return true if we have only one line from server and this line is !done - return 1 === \count($response) || (isset($response[0]) && $response[0] === '!done'); + return (1 === count($response)) && isset($response[0]) && ($response[0] === '!done'); } /**