From: friendica Date: Tue, 19 Jun 2012 10:39:30 +0000 (-0700) Subject: push order to sql X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=3e6ccd4c920beed1b45c1a7a25dc84adce682d03;p=friendica-addons.git push order to sql --- diff --git a/page.tgz b/page.tgz index 0523c0fe..b942bad6 100644 Binary files a/page.tgz and b/page.tgz differ diff --git a/page/page.php b/page/page.php index c79b6bea..f1718822 100755 --- a/page/page.php +++ b/page/page.php @@ -31,11 +31,11 @@ function page_getpage($uid,$randomise = false) { $pagelist = array(); - $random = (($randomise) ? ' order by rand() ' : ' order by name asc '); + $order = (($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 - order by name asc ", + $order ", intval($uid) );