This commit is contained in:
friendica 2014-02-24 15:07:00 -08:00
parent b2372c0c8f
commit 29ebfc25ca

View File

@ -514,7 +514,7 @@ function profile_load(&$a, $nickname, $profile = '') {
} }
if(! $p) { 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 LEFT JOIN channel ON profile.uid = channel.channel_id
WHERE channel.channel_address = '%s' and not ( channel_pageflags & %d ) WHERE channel.channel_address = '%s' and not ( channel_pageflags & %d )
AND profile.is_default = 1 LIMIT 1", AND profile.is_default = 1 LIMIT 1",