summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2006-09-15 04:38:52 +0200
committerlpsolit%gmail.com <>2006-09-15 04:38:52 +0200
commit5f3adf30b0cde623b56c0fc5c0e3447643de4b08 (patch)
tree98e855340bb3d9b9507495c754c6e885e945cb68
parent796c3fc76326a9bb05070bd1903045de442d9211 (diff)
downloadbugzilla-5f3adf30b0cde623b56c0fc5c0e3447643de4b08.tar.gz
bugzilla-5f3adf30b0cde623b56c0fc5c0e3447643de4b08.tar.xz
Bug 352702: Warnings in the web server error log when no URL is given on bug creation - Patch by Frédéric Buclin <LpSolit@gmail.com> r=mkanat a=myk
-rwxr-xr-xBugzilla/Bug.pm2
1 files changed, 1 insertions, 1 deletions
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;
}