From 82b37a514cc350bc7d0b6e92d2eef34b37db4b09 Mon Sep 17 00:00:00 2001 From: AXeL-dev Date: Sat, 1 Jun 2019 16:27:06 +0000 Subject: [PATCH] Fixed empty verification (0 might be considered as empty also, so its better to compare string value with '') --- htdocs/core/class/html.form.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index 054a8ef2b1d..63246fb0287 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -1915,7 +1915,7 @@ class Form unset($producttmpselect); } // handle case where product or service module is disabled + no filter specified - if (empty($filtertype)) + if ($filtertype == '') { if (empty($conf->product->enabled)) { // when product module is disabled, show services only $filtertype = 1;