From dc5ed0acacb302453b82d9e78aa8feac54dbb9e7 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Wed, 23 Jan 2013 17:24:12 +0000 Subject: [PATCH] Allow 0 as a filter value --- importexport/inc/class.importexport_export_ui.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/importexport/inc/class.importexport_export_ui.inc.php b/importexport/inc/class.importexport_export_ui.inc.php index 7ed2be6c57..07cb6fde8d 100644 --- a/importexport/inc/class.importexport_export_ui.inc.php +++ b/importexport/inc/class.importexport_export_ui.inc.php @@ -301,7 +301,7 @@ class importexport_export_ui { $filter[$key] = $value; // 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]); }