Skip to content

Commit

Permalink
is_numeric, not is_int
Browse files Browse the repository at this point in the history
  • Loading branch information
ttempleton committed Feb 11, 2023
1 parent dee8623 commit 431ee26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/elements/db/BlockQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ protected function beforePrepare(): bool

if (
$fieldIdForStructure === null &&
(is_int($this->id) || is_array($this->id) && count($this->id) === 1)
(is_numeric($this->id) || is_array($this->id) && count($this->id) === 1)
) {
$fieldIdForStructure = (new Query())
->select(['fieldId'])
Expand Down

0 comments on commit 431ee26

Please sign in to comment.