Index: branches/5.2.x/units/products/products_tag_processor.php =================================================================== diff -u -N -r16341 -r16375 --- branches/5.2.x/units/products/products_tag_processor.php (.../products_tag_processor.php) (revision 16341) +++ branches/5.2.x/units/products/products_tag_processor.php (.../products_tag_processor.php) (revision 16375) @@ -1,6 +1,6 @@ Application->GetSID().'_'.TABLE_PREFIX.'Search'; + /** @var kSearchHelper $search_helper */ + $search_helper = $this->Application->recallObject('SearchHelper'); + $sql = ' SELECT COUNT(ResourceId) - FROM '.$search_results_table.' + FROM ' . $search_helper->getSearchTable() . ' WHERE ItemType=11'; + return $this->Conn->GetOne($sql); }