fixing a booboo

This commit is contained in:
Matthew Wilson 2005-12-13 23:16:45 +00:00
parent dcfc111934
commit c7b87cda29

View file

@ -88,7 +88,7 @@ sub appendPostListTemplateVars {
#Create user object.
my $user = WebGUI::User->new($post->get('ownerUserId'));
#Get avatar field, storage Id.
my $storageId = $user->get("avatar");
my $storageId = $user->profileField("avatar");
my $avatar = WebGUI::Storage::Image->get($storageId);
if ($avatar) {
#Get url from storage object.