Skip to content

Commit

Permalink
numeric ...
Browse files Browse the repository at this point in the history
  • Loading branch information
andrepereiradasilva committed Apr 21, 2016
1 parent 8b0446c commit 2b4ceb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion administrator/components/com_finder/models/filters.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ protected function getListQuery()
// If the model is set to check item state, add to the query.
$state = $this->getState('filter.state');

if ($state !== '')
if (is_numeric($state))
{
$query->where($db->quoteName('a.state') . ' = ' . (int) $state);
}
Expand Down

0 comments on commit 2b4ceb2

Please sign in to comment.