where_nested no longer breaks on closures that don't actually set anything
This commit is contained in:
parent
b097b6c682
commit
8e12e7a819
|
@ -414,7 +414,10 @@ public function where_nested($callback, $connector = 'AND')
|
|||
// Once the callback has been run on the query, we will store the nested
|
||||
// query instance on the where clause array so that it's passed to the
|
||||
// query's query grammar instance when building.
|
||||
if ($query->wheres !== null)
|
||||
{
|
||||
$this->wheres[] = compact('type', 'query', 'connector');
|
||||
}
|
||||
|
||||
$this->bindings = array_merge($this->bindings, $query->bindings);
|
||||
|
||||
|
|
Loading…
Reference in New Issue