Browse Source

fix random expression

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

4
src/webui/search.php

@ -118,7 +118,9 @@ switch (true) @@ -118,7 +118,9 @@ switch (true)
// Empty query
case empty($q):
$query = $index->search('')->sort('RAND()');
$query = $index->search('')
->expression('random', 'rand()')
->sort('random', 'asc');
break;

Loading…
Cancel
Save