]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commitdiff
avoid ugly warning if size="" is specified
authorJoey Hess <joey@kitenet.net>
Sun, 13 Jun 2010 02:59:46 +0000 (22:59 -0400)
committerJoey Hess <joey@kitenet.net>
Sun, 13 Jun 2010 02:59:46 +0000 (22:59 -0400)
IkiWiki/Plugin/img.pm

index a69175ba69bd78e5678f32bd1183d65e639b1c9d..eb1b6812482dab4065f40dbe6b8a4ebc96726a49 100644 (file)
@@ -39,7 +39,7 @@ sub preprocess (@) {
                }
        }
 
-       if (! exists $params{size}) {
+       if (! exists $params{size} || ! length $params{size}) {
                $params{size}='full';
        }