This commit is contained in:
zenggang
2022-08-11 07:01:08 +00:00
parent 1915ef01e5
commit 6600b76ad9
2 changed files with 5 additions and 12 deletions
+4 -11
View File
@@ -231,18 +231,11 @@ class search extends control
$pager = new pager(0, $this->config->search->recPerPage, $pageID);
$results = $this->search->getList($words, $type, $pager);
if($words)
$typeCount = $this->search->getListCount('');
$typeList = array('all' => $this->lang->search->modules['all']);
foreach($typeCount as $objectType => $count)
{
$typeCount = $this->search->getListCount($words);
$typeList = array('all' => $this->lang->search->modules['all']);
foreach($typeCount as $objectType => $count)
{
$typeList[$objectType] = $this->lang->search->modules[$objectType];
}
}
else
{
$typeList = $this->lang->search->modules;
$typeList[$objectType] = $this->lang->search->modules[$objectType];
}
/* Set session. */