Skip to content

Commit

Permalink
fix matches checks on BaseBuilder
Browse files Browse the repository at this point in the history
  • Loading branch information
samsonasik committed Aug 28, 2024
1 parent 596aa69 commit 854e3db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/Database/BaseBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -3178,7 +3178,7 @@ protected function compileWhereHaving(string $qbKey): string
// 5 => ')' /* optional */
// );

if (! empty($matches[4])) {
if (isset($matches[4]) && ($matches[4] !== '' && $matches[4] !== '0')) {
$protectIdentifiers = false;
if (str_contains($matches[4], '.')) {
$protectIdentifiers = true;
Expand Down

0 comments on commit 854e3db

Please sign in to comment.