From ed0bff798badf32ba95278a5d260198b283f8bc3 Mon Sep 17 00:00:00 2001 From: redmatrix Date: Wed, 13 Apr 2016 22:58:37 -0700 Subject: fix marked bug in code --- include/identity.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/identity.php b/include/identity.php index 9bb4fb3c5..1c899048a 100644 --- a/include/identity.php +++ b/include/identity.php @@ -874,9 +874,8 @@ function profile_load(&$a, $nickname, $profile = '') { // fetch user tags if this isn't the default profile if(! $p[0]['is_default']) { - /** @BUG $profile_uid is undefinded for this query, so should not work. */ $x = q("select `keywords` from `profile` where uid = %d and `is_default` = 1 limit 1", - intval($profile_uid) + intval($p[0]['profile_uid']) ); if($x && $can_view_profile) $p[0]['keywords'] = $x[0]['keywords']; -- cgit v1.2.3