Instead of loading the user object for the user the profile is about, rdf_preprocess_user_profile loads the currently logged in user.

Will post a patch for this shortly.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Anonymous’s picture

This patch loads the user that the profile is about and fixes the test so that the logged in user isn't the one who's profile page is being looked at.

Anonymous’s picture

Status: Active » Needs review

forgot to mark for review

scor’s picture

Status: Needs review » Needs work
+++ modules/rdf/rdf.module	11 Feb 2010 20:12:42 -0000
@@ -476,7 +476,7 @@ function rdf_preprocess_user_profile(&$v
-  $account = user_load($variables['user']->uid);
+  $account = user_load($variables['elements']['#account']->uid);

we actually don't need to do user_load() here because #account is already a fully-fledge user_load() object.

Powered by Dreditor.

Anonymous’s picture

Status: Needs work » Needs review
FileSize
2.81 KB
scor’s picture

Status: Needs review » Reviewed & tested by the community

okay. looks good now.

webchick’s picture

Status: Reviewed & tested by the community » Fixed

Oopsie. :)

Committed to HEAD. Thanks!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.