diff options
author | Yorhel <git@yorhel.nl> | 2009-03-01 17:05:16 +0100 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2009-03-01 17:05:16 +0100 |
commit | 8c7865786b3ee98fd047caf4b3bacd8b4158c5c1 (patch) | |
tree | f529110066202f6f1af6afd7e50aeca201eee3e5 /lib/VNDB/Handler/Misc.pm | |
parent | 91cb3d4875322f54036a66ad88927fbcf106b30f (diff) |
Removed useless extra query on /hist
Diffstat (limited to 'lib/VNDB/Handler/Misc.pm')
-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 9af19a60..12eaf3b2 100644 --- a/lib/VNDB/Handler/Misc.pm +++ b/lib/VNDB/Handler/Misc.pm @@ -199,7 +199,7 @@ sub history { my $obj = $type eq 'u' ? $self->dbUserGet(uid => $id)->[0] : $type eq 'p' ? $self->dbProducerGet(id => $id)->[0] : $type eq 'r' ? $self->dbReleaseGet(id => $id)->[0] : - $self->dbVNGet(id => $id)->[0]; + $type eq 'v' ? $self->dbVNGet(id => $id)->[0] : undef; my $title = $type ? 'Edit history of '.($obj->{title} || $obj->{name} || $obj->{username}) : 'Recent changes'; return 404 if $type && !$obj->{id}; |