From: joey Date: Tue, 2 May 2006 04:37:31 +0000 (+0000) Subject: fix undef warning X-Git-Tag: 1.1~92 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f84b47d080f4d1ac47d12bd45a7004a6aba5875f;p=ikiwiki.git fix undef warning --- diff --git a/IkiWiki/CGI.pm b/IkiWiki/CGI.pm index 92d042dc9..74ed2f217 100644 --- a/IkiWiki/CGI.pm +++ b/IkiWiki/CGI.pm @@ -12,7 +12,7 @@ sub page_locked ($$;$) { #{{{ my $nonfatal=shift; my $user=$session->param("name"); - return if length $user && is_admin($user); + return if defined $user && is_admin($user); foreach my $admin (@{$config{adminuser}}) { my $locked_pages=userinfo_get($admin, "locked_pages");