push order to sql
parent
4c2a40ece8
commit
3e6ccd4c92
|
@ -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)
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in New Issue