mirror of
https://github.com/YGGverse/Yo.git
synced 2026-03-31 17:55:35 +00:00
fix random expression
This commit is contained in:
parent
4e1e58674b
commit
1addef52c5
1 changed files with 3 additions and 1 deletions
|
|
@ -118,7 +118,9 @@ switch (true)
|
||||||
// Empty query
|
// Empty query
|
||||||
case empty($q):
|
case empty($q):
|
||||||
|
|
||||||
$query = $index->search('')->sort('RAND()');
|
$query = $index->search('')
|
||||||
|
->expression('random', 'rand()')
|
||||||
|
->sort('random', 'asc');
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue