diff options
author | Joey Hess <joey@kitenet.net> | 2010-06-12 22:59:46 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2010-06-12 22:59:46 -0400 |
commit | 35a0715b9a7a84b222523e648e815cbcc21301ed (patch) | |
tree | de7ed266fa1ef3b7d17e9d12c68d04cd42bf3558 /IkiWiki/Plugin/img.pm | |
parent | dccd76487151acc6adc93ec79f1808096bc41324 (diff) | |
download | ikiwiki-35a0715b9a7a84b222523e648e815cbcc21301ed.tar ikiwiki-35a0715b9a7a84b222523e648e815cbcc21301ed.tar.gz |
avoid ugly warning if size="" is specified
Diffstat (limited to 'IkiWiki/Plugin/img.pm')
-rw-r--r-- | IkiWiki/Plugin/img.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/img.pm b/IkiWiki/Plugin/img.pm index a69175ba6..eb1b68124 100644 --- a/IkiWiki/Plugin/img.pm +++ b/IkiWiki/Plugin/img.pm @@ -39,7 +39,7 @@ sub preprocess (@) { } } - if (! exists $params{size}) { + if (! exists $params{size} || ! length $params{size}) { $params{size}='full'; } |