diff --git a/src/mServer/Client.php b/src/mServer/Client.php index 61a32d3..656452d 100644 --- a/src/mServer/Client.php +++ b/src/mServer/Client.php @@ -4,7 +4,7 @@ * PHPmServer - Client Class * * @author Vítězslav Dvořák - * @copyright (C) 2020 Vitex Software + * @copyright (C) 2020,2023 Vitex Software */ namespace mServer; @@ -448,7 +448,7 @@ public function processResponse($httpCode) { public function getStatus() { $this->responseStats = []; $this->errors = []; - return ($this->doCurlRequest($this->url . '/status','POST') == 200) && $this->lastCurlResponse == 'Response from POHODA mServer'; + return ($this->doCurlRequest($this->url . '/status','POST') === 200) && str_contains($this->lastCurlResponse, 'Response from POHODA mServer'); } /** @@ -465,7 +465,7 @@ public function takeData($data, $reset = false) { /** * Create Agenda document using given data * - * @param Array $data + * @param array $data */ public function create($data) { $this->requestXml = $this->pohoda->create($data);