From ce1e92a8431544a8cedc82c909ae389f61224bfb Mon Sep 17 00:00:00 2001 From: Yorhel Date: Tue, 26 Jan 2016 18:45:00 +0100 Subject: Handler::Misc: Fix perl warning on 404 */hist --- lib/VNDB/Handler/Misc.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/VNDB/Handler/Misc.pm') diff --git a/lib/VNDB/Handler/Misc.pm b/lib/VNDB/Handler/Misc.pm index 08439513..fd43c026 100644 --- a/lib/VNDB/Handler/Misc.pm +++ b/lib/VNDB/Handler/Misc.pm @@ -209,8 +209,8 @@ sub history { $type eq 'c' ? $self->dbCharGet(id => $id)->[0] : $type eq 's' ? $self->dbStaffGet(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 $self->resNotFound if $type && !$obj->{id}; + my $title = $type ? 'Edit history of '.($obj->{title} || $obj->{name} || $obj->{username}) : 'Recent changes'; # get the edit history my($list, $np) = $self->dbRevisionGet( -- cgit v1.2.3