Browse Source

fix random expression

main
yggverse 7 months ago
parent
commit
1addef52c5
  1. 4
      src/webui/search.php

4
src/webui/search.php

@ -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…
Cancel
Save