Skip to content

Commit

Permalink
[fix] strict comparison for operator string
Browse files Browse the repository at this point in the history
  • Loading branch information
catfan committed Dec 4, 2024
1 parent 6ef45a5 commit c37be61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Medoo.php
Original file line number Diff line number Diff line change
Expand Up @@ -900,7 +900,7 @@ protected function dataImplode(array $data, array &$map, string $conjunctor): st
continue;
}

if ($operator && $operator != '=') {
if ($operator && $operator !== '=') {
if (in_array($operator, ['>', '>=', '<', '<='])) {
$condition = "{$column} {$operator} ";

Expand Down

0 comments on commit c37be61

Please sign in to comment.