mirror of
https://github.com/YGGverse/YGGo.git
synced 2025-03-12 05:11:19 +00:00
fix priority calculation on zero value in PR
This commit is contained in:
parent
bf69d894ca
commit
0bda87fbe6
@ -13,7 +13,7 @@ class SphinxQL {
|
||||
|
||||
public function searchHostPages(string $keyword, string $mime, int $start, int $limit, int $maxMatches) {
|
||||
|
||||
$query = $this->_sphinx->prepare('SELECT *, WEIGHT() + `rank` * 1000 AS `priority`
|
||||
$query = $this->_sphinx->prepare('SELECT *, WEIGHT() + `rank` * IF (`rank` > 0, 1000, 1) AS `priority`
|
||||
|
||||
FROM `hostPage`
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user