aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/img.pm
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2010-06-12 22:59:46 -0400
committerJoey Hess <joey@kitenet.net>2010-06-12 22:59:46 -0400
commit35a0715b9a7a84b222523e648e815cbcc21301ed (patch)
treede7ed266fa1ef3b7d17e9d12c68d04cd42bf3558 /IkiWiki/Plugin/img.pm
parentdccd76487151acc6adc93ec79f1808096bc41324 (diff)
downloadikiwiki-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.pm2
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';
}