From 29ebfc25ca4c7c475437dd02418eb6f4fc17c952 Mon Sep 17 00:00:00 2001 From: friendica Date: Mon, 24 Feb 2014 15:07:00 -0800 Subject: take a p --- include/identity.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/identity.php b/include/identity.php index 9aa7d98c0..2e611625a 100644 --- a/include/identity.php +++ b/include/identity.php @@ -514,7 +514,7 @@ function profile_load(&$a, $nickname, $profile = '') { } if(! $p) { - $r = q("SELECT profile.uid AS profile_uid, profile.*, channel.* FROM profile + $p = q("SELECT profile.uid AS profile_uid, profile.*, channel.* FROM profile LEFT JOIN channel ON profile.uid = channel.channel_id WHERE channel.channel_address = '%s' and not ( channel_pageflags & %d ) AND profile.is_default = 1 LIMIT 1", -- cgit v1.2.3