AntonLV 9 лет назад
Родитель
Сommit
3eced1f178
2 измененных файлов с 2 добавлено и 2 удалено
  1. 1 1
      searchKeyword.php
  2. 1 1
      template/scripts/BxBaseCategory.php

+ 1 - 1
searchKeyword.php

@@ -16,7 +16,7 @@ $oSearch->setMetaType(bx_process_input(bx_get('type')));
 $oSearch->setCategoryObject(bx_process_input(bx_get('cat')));
 
 $sCode = '';
-if (bx_get('keyword')) {
+if (bx_get('keyword') !== false) {
     $sCode = $oSearch->response();
     if (!$sCode)
         $sCode = $oSearch->getEmptyResult();

+ 1 - 1
template/scripts/BxBaseCategory.php

@@ -74,7 +74,7 @@ class BxBaseCategory extends BxDolCategory
 
         $aVars = array('bx_repeat:cats' => array());
         foreach ($a as $sValue => $sName) {
-            if (!$sValue)
+            if (!is_numeric($sValue) && !$sValue)
                 continue;
             $iNum = $this->getItemsNum($sValue);
             if (!$bDisplayEmptyCats && !$iNum)