* Adjust code

This commit is contained in:
zenggang
2022-08-10 05:12:23 +00:00
parent b05e056843
commit 7ed3db1651
-6
View File
@@ -216,12 +216,6 @@ class search extends control
{
$this->lang->admin->menu->search = "{$this->lang->search->common}|search|index";
$requirementIds = $this->dao->select('t1.id')->from(TABLE_SEARCHINDEX)->alias('t1')
->leftJoin(TABLE_STORY)->alias('t2')->on('t1.objectID = t2.id')
->where('t1.objectType')->eq('story')
->andWhere('t2.type')->eq('requirement')
->fetchPairs('id');
$this->dao->update(TABLE_SEARCHINDEX)->set('objectType')->eq('requirement')->where('id')->in($requirementIds)->exec();
if(empty($words)) $words = $this->get->words;
if(empty($words)) $words = $this->post->words;
if(empty($words) and ($recTotal != 0 or $pageID != 1)) $words = $this->session->searchIngWord;