diff options
author | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2006-05-02 04:37:31 +0000 |
---|---|---|
committer | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2006-05-02 04:37:31 +0000 |
commit | f84b47d080f4d1ac47d12bd45a7004a6aba5875f (patch) | |
tree | c0f9d10aaddc852f7fa9bb7d8a9ba08d983328c7 /IkiWiki | |
parent | fe6b271501d4d8ae00a012d14a8814cee5e0e55d (diff) | |
download | ikiwiki-f84b47d080f4d1ac47d12bd45a7004a6aba5875f.tar ikiwiki-f84b47d080f4d1ac47d12bd45a7004a6aba5875f.tar.gz |
fix undef warning
Diffstat (limited to 'IkiWiki')
-rw-r--r-- | IkiWiki/CGI.pm | 2 |
1 files changed, 1 insertions, 1 deletions
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"); |