From: lpsolit%gmail.com <> Date: Fri, 15 Sep 2006 02:38:52 +0000 (+0000) Subject: Bug 352702: Warnings in the web server error log when no URL is given on bug creation... X-Git-Tag: bugzilla-2.23.3~54 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5f3adf30b0cde623b56c0fc5c0e3447643de4b08;p=thirdparty%2Fbugzilla.git Bug 352702: Warnings in the web server error log when no URL is given on bug creation - Patch by Frédéric Buclin r=mkanat a=myk --- diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm index d49fcfd20f..eeffb4c711 100755 --- a/Bugzilla/Bug.pm +++ b/Bugzilla/Bug.pm @@ -450,7 +450,7 @@ sub _check_assigned_to { sub _check_bug_file_loc { my ($invocant, $url) = @_; # If bug_file_loc is "http://", the default, use an empty value instead. - $url = '' if $url eq 'http://'; + $url = '' if (!defined($url) || $url eq 'http://'); return $url; }