* fix bug for fulltext search and action.
This commit is contained in:
@@ -701,7 +701,7 @@ class searchModel extends model
|
||||
if(empty($savedDict)) $savedDict = $this->dao->select("`key`")->from(TABLE_SEARCHDICT)->fetchPairs('key', 'key');
|
||||
foreach($dict as $key => $value)
|
||||
{
|
||||
if(!is_numeric($key) or empty($value) or strlen($key) != 5) continue;
|
||||
if(!is_numeric($key) or empty($value) or strlen($key) != 5 or $key < 0) continue;
|
||||
if(isset($savedDict[$key])) continue;
|
||||
|
||||
$this->dao->insert(TABLE_SEARCHDICT)->data(array('key' => $key, 'value' => $value))->exec();
|
||||
|
||||
Reference in New Issue
Block a user