From: friendica Date: Tue, 19 Jun 2012 10:33:40 +0000 (-0700) Subject: ordering preference X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=4c2a40ece8731ab4f4a1232c356b83b67e0259d6;p=friendica-addons.git ordering preference --- diff --git a/page.tgz b/page.tgz index 43eb2b56..0523c0fe 100644 Binary files a/page.tgz and b/page.tgz differ diff --git a/page/page.php b/page/page.php index 80d902de..c79b6bea 100755 --- a/page/page.php +++ b/page/page.php @@ -31,7 +31,7 @@ function page_getpage($uid,$randomise = false) { $pagelist = array(); - $random = (($randomise) ? ' order by rand ' : ' order by name asc '); + $random = (($randomise) ? ' order by rand() ' : ' order by name asc '); $contacts = q("SELECT `id`, `url`, `name`, `micro`FROM `contact` WHERE `network`= 'dfrn' AND `forum` = 1 AND `uid` = %d