From 59ea4e32a0b8bc55249f09c4c0992b0bee221b2a Mon Sep 17 00:00:00 2001 From: friendica Date: Wed, 6 Mar 2013 00:21:02 -0800 Subject: randprof sorta working --- include/Contact.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/Contact.php b/include/Contact.php index 6978b45bc..a49cc335f 100644 --- a/include/Contact.php +++ b/include/Contact.php @@ -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 ''; } -- cgit v1.2.3