Fixed empty verification (0 might be considered as empty also, so its better to compare string value with '')

This commit is contained in:
AXeL-dev 2019-06-01 16:27:06 +00:00
parent d2c853c47b
commit 82b37a514c

View File

@ -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;