diff --git a/src/AbraFlexi/RW.php b/src/AbraFlexi/RW.php index e8a39324..f49dda8f 100644 --- a/src/AbraFlexi/RW.php +++ b/src/AbraFlexi/RW.php @@ -110,7 +110,7 @@ public function parseResponse($responseDecoded, $responseCode) { $this->responseStats = array_key_exists('stats', $responseDecoded) ? (isset($responseDecoded['stats'][0]) ? array_map('intval', $responseDecoded['stats'][0]) : array_map('intval', $responseDecoded['stats'])) : null; if (isset($responseDecoded[$this->resultField][0]['id'])) { - $this->lastInsertedID = $responseDecoded[$this->resultField][0]['id']; + $this->lastInsertedID = intval($responseDecoded[$this->resultField][0]['id']); $this->setMyKey($this->lastInsertedID); } else { $this->lastInsertedID = null;