Skip to content

Commit

Permalink
"0" is a valid filter value
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Hunziker committed Jul 21, 2015
1 parent 7adb4bc commit 3359c2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/legacy/model/list.php
Expand Up @@ -666,7 +666,7 @@ public function getUserStateFromRequest($key, $request, $default = null, $type =
$name = substr($request, 7);
$filters = $app->input->get('filter', array(), 'array');

if (!empty($filters[$name]))
if (isset($filters[$name]) && $filters[$name] !== '')
{
$new_state = $filters[$name];
}
Expand Down

0 comments on commit 3359c2c

Please sign in to comment.