From 8f9ddcb536ae46f1c6b3d3c19db1598dc4a51616 Mon Sep 17 00:00:00 2001 From: friendica Date: Sun, 21 Oct 2012 22:11:02 -0700 Subject: lotsa little fixes --- include/Contact.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include/Contact.php') diff --git a/include/Contact.php b/include/Contact.php index 9a6d6a973..6b565f27c 100644 --- a/include/Contact.php +++ b/include/Contact.php @@ -353,9 +353,9 @@ function contact_photo_menu($contact) { function random_profile() { - $r = q("select url from gcontact where url like '%%://%%/profile/%%' order by rand() limit 1"); - if(count($r)) - return dirname($r[0]['url']); + $r = q("select xchan_profile from xchan where xchan_network = 'zot' order by rand() limit 1"); + if($r && count($r)) + return $r[0]['xchan_profile']; return ''; } -- cgit v1.2.3