Skip to content

Commit

Permalink
Use in_array instead of array_search + condition
Browse files Browse the repository at this point in the history
  • Loading branch information
carusogabriel committed Oct 14, 2018
1 parent b40c2c6 commit 15e49af
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1741,7 +1741,7 @@ public function getSelectConditionStatementSQL(
if (is_array($value)) {
$in = sprintf('%s IN (%s)', $column, $placeholder);

if (array_search(null, $value, true) !== false) {
if (in_array(null, $value, true)) {
$selectedColumns[] = sprintf('(%s OR %s IS NULL)', $in, $column);

continue;
Expand Down

0 comments on commit 15e49af

Please sign in to comment.