-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Vítězslav Dvořák
committed
May 18, 2023
1 parent
c9cd6da
commit f812ede
Showing
1 changed file
with
3 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
* PHPmServer - Client Class | ||
* | ||
* @author Vítězslav Dvořák <[email protected]> | ||
* @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); | ||
|