Skip to content

Commit 4a93000

Browse files
committed
Insert always return INT row number from database
1 parent fc86162 commit 4a93000

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/AbraFlexi/RW.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ public function parseResponse($responseDecoded, $responseCode) {
110110
$this->responseStats = array_key_exists('stats',
111111
$responseDecoded) ? (isset($responseDecoded['stats'][0]) ? array_map('intval', $responseDecoded['stats'][0]) : array_map('intval', $responseDecoded['stats'])) : null;
112112
if (isset($responseDecoded[$this->resultField][0]['id'])) {
113-
$this->lastInsertedID = $responseDecoded[$this->resultField][0]['id'];
113+
$this->lastInsertedID = intval($responseDecoded[$this->resultField][0]['id']);
114114
$this->setMyKey($this->lastInsertedID);
115115
} else {
116116
$this->lastInsertedID = null;

0 commit comments

Comments
 (0)