avoid uninitialised value
authorJoey Hess <joey@kodama.kitenet.net>
Fri, 2 May 2008 17:01:51 +0000 (13:01 -0400)
committerJoey Hess <joey@kodama.kitenet.net>
Fri, 2 May 2008 17:01:51 +0000 (13:01 -0400)
IkiWiki/Plugin/anonok.pm

index ba02325ff7e1b8a8089797952623c9e4f4cd77b0..1880516d568b35e2b96463676d23c04c62f103f2 100644 (file)
@@ -16,7 +16,7 @@ sub canedit ($$$) { #{{{
 
        my $ret;
 
-       if (length $config{anonok_pagespec}) {
+       if (exists $config{anonok_pagespec} && length $config{anonok_pagespec}) {
                if (pagespec_match($page, $config{anonok_pagespec},
                                   location => $page)) {
                        return "";