Skip to content

Commit

Permalink
tweak: check isset before is_array
Browse files Browse the repository at this point in the history
  • Loading branch information
g105b committed Sep 21, 2023
1 parent fff4a9f commit 4ac1bfc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Query/ReplaceQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function select():?SelectQuery {
protected function normaliseSet(array $setData):array {
$normalised = [];

if(is_array($setData[0])) {
if(isset($setData[0]) && is_array($setData[0])) {
$setData = $setData[0];
}

Expand Down

0 comments on commit 4ac1bfc

Please sign in to comment.