randprof sorta working

This commit is contained in:
friendica
2013-03-06 00:21:02 -08:00
parent f74bdda0be
commit 59ea4e32a0
4 changed files with 7 additions and 7 deletions

View File

@@ -397,8 +397,8 @@ function contact_photo_menu($contact) {
function random_profile() {
$r = q("select xchan_url from xchan where xchan_network = 'zot' order by rand() limit 1");
if($r && count($r))
$r = q("select xchan_url from xchan where 1 order by rand() limit 1");
if($r)
return $r[0]['xchan_url'];
return '';
}