From: Stricted Date: Wed, 7 Nov 2018 22:09:17 +0000 (+0100) Subject: fix reconnectLte X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=refs%2Fheads%2Fmaster;p=GitHub%2FStricted%2Fspeedport-hybrid-php-api.git fix reconnectLte Change-Id: Id804d32a7c64b9a56356be55bf342b0ce3d77792 --- diff --git a/lib/trait/Connection.class.php b/lib/trait/Connection.class.php index 7552601..51b9407 100644 --- a/lib/trait/Connection.class.php +++ b/lib/trait/Connection.class.php @@ -79,6 +79,8 @@ trait Connection { $path = 'data/modules.json'; $fields = array('csrf_token' => $this->token, 'lte_reconn' => '1'); $data = $this->sendEncryptedRequest($path, $fields, true); + $data = $this->getValues($data['body']); + if ($data['status'] == 'ok') { return true; }