]> sipb.mit.edu Git - ikiwiki.git/commitdiff
another useless use of scalar
authorJoey Hess <joey@gnu.kitenet.net>
Mon, 26 Jan 2009 18:21:33 +0000 (13:21 -0500)
committerJoey Hess <joey@gnu.kitenet.net>
Mon, 26 Jan 2009 18:21:33 +0000 (13:21 -0500)
scalar(undef) is undef, so using scalar here had no effect.
Instead make the function return "", probably avoiding an uninitialized
value warning.

IkiWiki/Plugin/po.pm

index 7dfa52f570c3cd21fa63234713b44316af3cae9c..91bf8872f24b4054f423f1f3944463db3f777553 100644 (file)
@@ -753,7 +753,7 @@ sub istranslation ($) {
                $translations{$masterpage}{$lang}=$page unless exists $translations{$masterpage}{$lang};
                return (maybe_add_leading_slash($masterpage, $hasleadingslash), $lang);
        }
                $translations{$masterpage}{$lang}=$page unless exists $translations{$masterpage}{$lang};
                return (maybe_add_leading_slash($masterpage, $hasleadingslash), $lang);
        }
-       return;
+       return "";
 }
 
 sub masterpage ($) {
 }
 
 sub masterpage ($) {