Skip to content

Commit 0a38607

Browse files
authored
Merge pull request #17 from vatasik/master
change ElasticTableGateway.php check id from isset to !empty
2 parents 5a961e4 + dc4dfd2 commit 0a38607

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/TableGateway/ElasticTableGateway.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public function insert(array $data, array $options = []): ?array
6060
$this->collectionName,
6161
$this->documentType,
6262
$data,
63-
(isset($id) ? $id : null),
63+
(!empty($id) ? $id : null),
6464
$options
6565
);
6666
return ['_id' => $result['_id']];

0 commit comments

Comments
 (0)