-- HikaShop version -- : 4.4.4
-- Joomla version -- : 3.10.3
-- PHP version -- : 7.3
-- Browser(s) name and version -- : chrome 96.0.4664.45
-- Error-message(debug-mod must be tuned on) -- : Warning: trim() expects parameter 1 to be string, array given in /home/matrivub/public_html/components/com_hikashop/views/product/tmpl/filter.php on line 67
Warning: trim() expects parameter 1 to be string, array given in /home/matrivub/public_html/components/com_hikashop/views/product/tmpl/filter.php on line 67
Warning: trim() expects parameter 1 to be string, array given in /home/matrivub/public_html/components/com_hikashop/views/product/tmpl/filter.php on line 67
Warning: trim() expects parameter 1 to be string, array given in /home/matrivub/public_html/components/com_hikashop/views/product/tmpl/filter.php on line 67
Warning: trim() expects parameter 1 to be string, array given in /home/matrivub/public_html/components/com_hikashop/views/product/tmpl/filter.php on line 67
Warning: trim() expects parameter 1 to be string, array given in /home/matrivub/public_html/components/com_hikashop/views/product/tmpl/filter.php on line 67
Hello, in default mode in Joomla a saw a fowolling warning:
0
Warning: trim() expects parameter 1 to be string, array given in ...........
I`ve donwloading the filter.php file and scrol down to 67 row. Here are the code at the rows 67,68,69:
if(!empty($data) && !in_array(trim($data), array('', 'none', '::'))) {
$filter->filterActive = true;
$filterActivated = true;
WHAT CAN I DO TO FIX THE WARNING IN DEFAULT JOOMLA MODE TO DISSAPEAR THE WARNING?
Is the code below right?
if(!empty($data) && !in_array(trim($data), array('', 'none', '::'))) {
$filter->filterActive = false;
$filterActivated = false;