Skip to content

Commit

Permalink
fix unset variable
Browse files Browse the repository at this point in the history
  • Loading branch information
esbenp committed Sep 8, 2016
1 parent 0ab5e64 commit c353ee7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/EloquentBuilderTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ protected function applyFilter(Builder $query, array $filter, $or = false, array
// $value, $not, $key, $operator
extract($filter);

$table = $query->getModel()->getTable();

if ($value === 'null' || $value === '') {
$method = $not ? 'WhereNotNull' : 'WhereNull';

Expand All @@ -92,7 +94,6 @@ protected function applyFilter(Builder $query, array $filter, $or = false, array
$method = $or === true ? 'orWhere' : 'where';
$clauseOperator = null;
$databaseField = null;
$table = $query->getModel()->getTable();

switch($operator) {
case 'ct':
Expand Down

0 comments on commit c353ee7

Please sign in to comment.