diff options
author | Joey Hess <joey@kodama.kitenet.net> | 2008-07-06 16:56:50 -0400 |
---|---|---|
committer | Joey Hess <joey@kodama.kitenet.net> | 2008-07-06 17:00:35 -0400 |
commit | 6e2dc2b1fd690f36365d7d0bdd18d220b0aaa524 (patch) | |
tree | 51eb112f9a073559b699bc7abdb03c7eaf748cce /IkiWiki/Plugin | |
parent | 05124f9a86dadca50c693d57f8fc8398fb5d8be9 (diff) |
avoid uninitialised value
Diffstat (limited to 'IkiWiki/Plugin')
-rw-r--r-- | IkiWiki/Plugin/editdiff.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/IkiWiki/Plugin/editdiff.pm b/IkiWiki/Plugin/editdiff.pm index d45c73e8f..9872e9686 100644 --- a/IkiWiki/Plugin/editdiff.pm +++ b/IkiWiki/Plugin/editdiff.pm @@ -46,10 +46,10 @@ sub diff ($$) { #{{{ sub formbuilder_setup { #{{{ my %params=@_; my $form=$params{form}; - my $page=$form->field("page"); - return if $form->field("do") ne "edit"; + return if defined ! $form->field("do") || $form->field("do") ne "edit"; + my $page=$form->field("page"); $page = IkiWiki::possibly_foolish_untaint($page); return unless exists $pagesources{$page}; |