Commit 27eb01ba authored by merlinofchaos's avatar merlinofchaos

Damn this line got left out

parent cd82b37a
......@@ -743,10 +743,10 @@ function views_handler_sort_random($action, &$query, $sortinfo, $sort) {
switch ($GLOBALS['db_type']) {
case 'mysql':
case 'mysqli':
$query->add_orderby('', "rand()", "ASC");
$query->add_orderby('', "rand()", "ASC", 'random_sort');
case 'pgsql':
$query->add_orderby('', "random()", "ASC");
$query->add_orderby('', "random()", "ASC", 'random_sort');
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment