summaryrefslogtreecommitdiff
path: root/lib/VNDB/Util/CommonHTML.pm
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2008-12-13 17:35:50 +0100
committerYorhel <git@yorhel.nl>2008-12-13 17:35:50 +0100
commitce980647216d5a4028705db9c3b2309a30b73274 (patch)
tree037a603ae3ce89111a13ee58d222f782a19f3c12 /lib/VNDB/Util/CommonHTML.pm
parent347996af1fd24373f9da19e900b491a3732f88f4 (diff)
Got rid of perl warning on u+ pages when not logged in
Diffstat (limited to 'lib/VNDB/Util/CommonHTML.pm')
-rw-r--r--lib/VNDB/Util/CommonHTML.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VNDB/Util/CommonHTML.pm b/lib/VNDB/Util/CommonHTML.pm
index 81cc5234..48d06318 100644
--- a/lib/VNDB/Util/CommonHTML.pm
+++ b/lib/VNDB/Util/CommonHTML.pm
@@ -45,7 +45,7 @@ sub htmlMainTabs {
end;
}
- if($type eq 'u' && ($obj->{id} == $self->authInfo->{id} || $self->authCan('usermod'))
+ if($type eq 'u' && ($self->authInfo->{id} && $obj->{id} == $self->authInfo->{id} || $self->authCan('usermod'))
|| $type ne 'u' && $self->authCan('edit') && (!$obj->{locked} || $self->authCan('lock')) && (!$obj->{hidden} || $self->authCan('del'))) {
li $sel eq 'edit' ? (class => 'tabselected') : ();
a href => "/$id/edit", 'edit';