diff options
author | Joey Hess <joey@kodama.kitenet.net> | 2008-05-02 13:01:51 -0400 |
---|---|---|
committer | Joey Hess <joey@kodama.kitenet.net> | 2008-05-02 13:01:51 -0400 |
commit | 9fca7f2f8b64f4caded4a0099cef1f4d152dabee (patch) | |
tree | eb2bb38a98a1de008d26bd20e39f2980b5e8b8cb | |
parent | 6f852e88e30775cb2238f301bb7ca1c4a83d59f4 (diff) | |
download | ikiwiki-9fca7f2f8b64f4caded4a0099cef1f4d152dabee.tar ikiwiki-9fca7f2f8b64f4caded4a0099cef1f4d152dabee.tar.gz |
avoid uninitialised value
-rw-r--r-- | IkiWiki/Plugin/anonok.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/anonok.pm b/IkiWiki/Plugin/anonok.pm index ba02325ff..1880516d5 100644 --- a/IkiWiki/Plugin/anonok.pm +++ b/IkiWiki/Plugin/anonok.pm @@ -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 ""; |