push order to sql
This commit is contained in:
parent
4c2a40ece8
commit
3e6ccd4c92
2 changed files with 2 additions and 2 deletions
BIN
page.tgz
BIN
page.tgz
Binary file not shown.
|
@ -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 a new issue