Skip to content

Commit

Permalink
Insert always return INT row number from database
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitexus committed Mar 23, 2022
1 parent fc86162 commit 4a93000
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/AbraFlexi/RW.php
Expand Up @@ -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;
Expand Down

0 comments on commit 4a93000

Please sign in to comment.