it helps to initialize values before using them.
authorDave Cohen
Sat, 8 Jan 2011 00:02:35 +0000 (00:02 +0000)
committerDave Cohen
Sat, 8 Jan 2011 00:02:35 +0000 (00:02 +0000)
fb.theme.inc

index 84eb2f5..cd03da3 100644 (file)
@@ -56,6 +56,10 @@ function theme_fb_user_picture($fbu, $object, $orig) {
   if (!$fbu)
     return $orig;
 
+  $fbu = $params['fbu'];
+  $object = $params['account'];
+  $orig = $params['orig'];
+
   // http://developers.facebook.com/docs/reference/fbml/profile-pic
   $fbml = "<fb:profile-pic linked=false uid=\"$fbu\"></fb:profile-pic>";
   $wrap_pre = '<span class=fb_hide>' . $orig . '</span><span class="fb_show" style="display:none;"><div class="picture">';