mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-25 04:11:49 +02:00
Allow 0 as a filter value
This commit is contained in:
parent
a01b53a2b3
commit
dc5ed0acac
@ -301,7 +301,7 @@ class importexport_export_ui {
|
|||||||
$filter[$key] = $value;
|
$filter[$key] = $value;
|
||||||
|
|
||||||
// Skip empty values or empty ranges
|
// Skip empty values or empty ranges
|
||||||
if(!$value || is_array($value) && array_key_exists('from',$value) && !$value['from'] && !$value['to'] )
|
if($value == "" || is_null($value) || (is_array($value) && count($value) == 0) || is_array($value) && array_key_exists('from',$value) && !$value['from'] && !$value['to'] )
|
||||||
{
|
{
|
||||||
unset($filter[$key]);
|
unset($filter[$key]);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user