From 5f3adf30b0cde623b56c0fc5c0e3447643de4b08 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Fri, 15 Sep 2006 02:38:52 +0000 Subject: 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 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Bugzilla/Bug.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Bugzilla') diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm index d49fcfd20..eeffb4c71 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; } -- cgit v1.2.3-24-g4f1b