Код |
---|
foreach(array_reverse($this->_arPhrase, true) as $word => $pos) { if(empty($sqlWords) && !preg_match("/[\\n\\r \\t]$/", $phrase)) $s = $sqlWords[] = "ct.WORD like '".$DB->ForSQL($word)."%'"; else $s = $sqlWords[] = "ct.WORD = '".$DB->ForSQL($word)."'"; $sqlHaving[] = "(sum(".$s.") > 0)"; } |
Код |
---|
foreach(array_reverse($this->_arPhrase, true) as $word => $pos) { if(empty($sqlWords) && !preg_match("/[\\n\\r \\t]$/", $phrase)) $s = $sqlWords[] = "ct.WORD like '".$DB->ForSQL($word)."%'"; else $s = $sqlWords[] = "ct.WORD like '".$DB->ForSQL($word)."%'"; $sqlHaving[] = "(sum(".$s.") > 0)"; } |