fix reconnectLte
[GitHub/Stricted/speedport-hybrid-php-api.git] / lib / trait / Connection.class.php
index 07d0d9bfdccd54fe1edc682bede928e395a1dc9c..51b94073d3d2908a2fa640faa02c29ca5e55f8c6 100644 (file)
@@ -2,7 +2,7 @@
 /**
  * @author      Jan Altensen (Stricted)
  * @license     GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
- * @copyright   2015 Jan Altensen (Stricted)
+ * @copyright   2015-2016 Jan Altensen (Stricted)
  */
 trait Connection {
        /**
@@ -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;
                }