Skip to content
This repository has been archived by the owner on Aug 13, 2023. It is now read-only.

Commit

Permalink
Update Where.php
Browse files Browse the repository at this point in the history
  • Loading branch information
rez1dent3 authored Apr 19, 2017
1 parent 65c5ef4 commit c7a0db8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/QueryBuilder/Operator/Where.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,9 @@ protected function storageWhere()
protected function buildWhereOne(...$args)
{
$equal = count($args) === 3;
$opr = $equal ? $args[1] : '=';

$_value = $args[1 + $equal];
$opr = $equal ? $args[1] : (is_array($_value) ? 'in' : '=');

$raw = false;

if ($args[1 + $equal] instanceof RawQuery || $args[1 + $equal] instanceof InstructionSelect)
Expand Down

0 comments on commit c7a0db8

Please sign in to comment.