]> sipb.mit.edu Git - ikiwiki.git/commitdiff
avoid undefined value warning in some case
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Tue, 15 Aug 2006 18:06:55 +0000 (18:06 +0000)
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Tue, 15 Aug 2006 18:06:55 +0000 (18:06 +0000)
IkiWiki/Plugin/inline.pm

index 66cba027a210ec18727339c765360c808935b796..935df9a7764cb451d37705b7e10b0f8b105156d5 100644 (file)
@@ -233,7 +233,7 @@ sub pingurl (@) { #{{{
                        }
                        my $r=$res->value;
                        if (! exists $r->{flerror} || $r->{flerror}) {
-                               debug("Ping rejected: ".$r->{message});
+                               debug("Ping rejected: ".(exists $r->{message} ? $r->{message} : "[unknown reason]"));
                        }
                }
        }