Skip to content

Commit

Permalink
Merge pull request #4 from malles/patch-1
Browse files Browse the repository at this point in the history
Don't throw error on empty response.
  • Loading branch information
robgridley authored Mar 13, 2017
2 parents f71f01c + 7addf6a commit 19fbb0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ protected function disconnect()
*/
public function send($zpl)
{
if (!@socket_write($this->socket, $zpl)) {
if (false === @socket_write($this->socket, $zpl)) {
$error = $this->getLastError();
throw new CommunicationException($error['message'], $error['code']);
}
Expand Down

0 comments on commit 19fbb0f

Please sign in to comment.