From: Andreas Scherbaum Date: Fri, 25 May 2012 21:44:09 +0000 (+0200) Subject: - fix some warnings X-Git-Url: http://git.postgresql.org/gitweb/static/developers.postgresql.org?a=commitdiff_plain;h=d346f47ff04394c761367e47b727d85b4f46d433;p=docbot.git - fix some warnings --- diff --git a/docbot.pl b/docbot.pl index ac1b3b0..6e6652e 100755 --- a/docbot.pl +++ b/docbot.pl @@ -1661,6 +1661,10 @@ sub is_a_channel { sub extract_channel { my $string = shift; + if (!defined($string)) { + return ''; + } + if (substr($string, 0, 1) eq '#') { return substr($string, 1); }