Skip to content

Commit 854e3db

Browse files
committed
fix matches checks on BaseBuilder
1 parent 596aa69 commit 854e3db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

system/Database/BaseBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3178,7 +3178,7 @@ protected function compileWhereHaving(string $qbKey): string
31783178
// 5 => ')' /* optional */
31793179
// );
31803180

3181-
if (! empty($matches[4])) {
3181+
if (isset($matches[4]) && ($matches[4] !== '' && $matches[4] !== '0')) {
31823182
$protectIdentifiers = false;
31833183
if (str_contains($matches[4], '.')) {
31843184
$protectIdentifiers = true;

0 commit comments

Comments
 (0)