fix undef warning

master
joey 2006-05-02 04:37:31 +00:00
parent fe6b271501
commit f84b47d080
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ sub page_locked ($$;$) { #{{{
my $nonfatal=shift; my $nonfatal=shift;
my $user=$session->param("name"); my $user=$session->param("name");
return if length $user && is_admin($user); return if defined $user && is_admin($user);
foreach my $admin (@{$config{adminuser}}) { foreach my $admin (@{$config{adminuser}}) {
my $locked_pages=userinfo_get($admin, "locked_pages"); my $locked_pages=userinfo_get($admin, "locked_pages");