From f84b47d080f4d1ac47d12bd45a7004a6aba5875f Mon Sep 17 00:00:00 2001 From: joey Date: Tue, 2 May 2006 04:37:31 +0000 Subject: fix undef warning --- IkiWiki/CGI.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); -- cgit v1.2.3