diff --git a/htdocs/html.form.class.php b/htdocs/html.form.class.php index 0217fad2b1c..5cdc358f150 100644 --- a/htdocs/html.form.class.php +++ b/htdocs/html.form.class.php @@ -1107,7 +1107,7 @@ class Form $filterarray=array(); if ($filtertype == 'CRDT') $filterarray=array(0,2); elseif ($filtertype == 'DBIT') $filterarray=array(1,2); - elseif ($filtertype != '-1') $filterarray=split(',',$filtertype); + elseif ($filtertype != '' && $filtertype != '-1') $filterarray=split(',',$filtertype); $this->load_cache_types_paiements();