]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 352702: Warnings in the web server error log when no URL is given on bug creation...
authorlpsolit%gmail.com <>
Fri, 15 Sep 2006 02:38:52 +0000 (02:38 +0000)
committerlpsolit%gmail.com <>
Fri, 15 Sep 2006 02:38:52 +0000 (02:38 +0000)
Bugzilla/Bug.pm

index d49fcfd20f608c7770f8ba5dbd3b2799d173eb7f..eeffb4c711b05cf3312569b2084fba0f87417646 100755 (executable)
@@ -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;
 }