diff options
author | Yorhel <git@yorhel.nl> | 2008-11-14 19:21:44 +0100 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2008-11-14 19:21:44 +0100 |
commit | 7c90669498cb150e2a2de8d964595c88174987ef (patch) | |
tree | 14da1c7a1d375a4cb597b0e5d7495f17c5c17b7c /lib | |
parent | 549608b0091107973c6d25b2a45189b85663144c (diff) |
Title bugfix for /u+/hist pages
Diffstat (limited to 'lib')
-rw-r--r-- | lib/VNDB/Handler/Misc.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VNDB/Handler/Misc.pm b/lib/VNDB/Handler/Misc.pm index ce6d34a9..ea30336f 100644 --- a/lib/VNDB/Handler/Misc.pm +++ b/lib/VNDB/Handler/Misc.pm @@ -38,7 +38,7 @@ sub history { return 404 if $f->{_err}; # get item object and title - my $obj = $type eq 'u' ? $self->dbUserGet(id => $id)->[0] : + my $obj = $type eq 'u' ? $self->dbUserGet(uid => $id)->[0] : $type eq 'p' ? $self->dbProducerGet(id => $id)->[0] : {}; my $title = $type ? 'Edit history of '.($obj->{title} || $obj->{name} || $obj->{username}) : 'Recent changes'; |