diff options
author | redmatrix <git@macgirvin.com> | 2016-04-13 22:58:37 -0700 |
---|---|---|
committer | redmatrix <git@macgirvin.com> | 2016-04-13 22:58:37 -0700 |
commit | ed0bff798badf32ba95278a5d260198b283f8bc3 (patch) | |
tree | 2656ecea1a752f32314ef51790287775c737b49f /include | |
parent | 3f0bb1bb1d94411e8df262c874e9cc67a21fdf6e (diff) | |
download | volse-hubzilla-ed0bff798badf32ba95278a5d260198b283f8bc3.tar.gz volse-hubzilla-ed0bff798badf32ba95278a5d260198b283f8bc3.tar.bz2 volse-hubzilla-ed0bff798badf32ba95278a5d260198b283f8bc3.zip |
fix marked bug in code
Diffstat (limited to 'include')
-rw-r--r-- | include/identity.php | 3 |
1 files changed, 1 insertions, 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']; |