push order to sql

pull/62/merge
friendica 2012-06-19 03:39:30 -07:00
parent 4c2a40ece8
commit 3e6ccd4c92
2 changed files with 2 additions and 2 deletions

BIN
page.tgz

Binary file not shown.

View File

@ -31,11 +31,11 @@ function page_getpage($uid,$randomise = false) {
$pagelist = array(); $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` $contacts = q("SELECT `id`, `url`, `name`, `micro`FROM `contact`
WHERE `network`= 'dfrn' AND `forum` = 1 AND `uid` = %d WHERE `network`= 'dfrn' AND `forum` = 1 AND `uid` = %d
order by name asc ", $order ",
intval($uid) intval($uid)
); );