summaryrefslogtreecommitdiffstats
path: root/extensions/SiteMapIndex/lib
diff options
context:
space:
mode:
authorByron Jones <bjones@mozilla.com>2012-04-11 11:29:33 +0200
committerByron Jones <bjones@mozilla.com>2012-04-11 11:29:33 +0200
commit2cedff64578d719d21d040bf9c44a344b2c1cb20 (patch)
treeeebf75391b5237829205960b083541712661a914 /extensions/SiteMapIndex/lib
parentd1559509efb909ca2ab98f6c675d97b842e5e8d3 (diff)
downloadbugzilla-2cedff64578d719d21d040bf9c44a344b2c1cb20.tar.gz
bugzilla-2cedff64578d719d21d040bf9c44a344b2c1cb20.tar.xz
Bug 744018: fix "use of uninitialized value" warning
Diffstat (limited to 'extensions/SiteMapIndex/lib')
-rw-r--r--extensions/SiteMapIndex/lib/Util.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/extensions/SiteMapIndex/lib/Util.pm b/extensions/SiteMapIndex/lib/Util.pm
index 3c322d8c7..b0e4c6eab 100644
--- a/extensions/SiteMapIndex/lib/Util.pm
+++ b/extensions/SiteMapIndex/lib/Util.pm
@@ -46,7 +46,7 @@ sub bug_is_ok_to_index {
my ($bug) = @_;
return 1 unless blessed($bug) && $bug->isa('Bugzilla::Bug');
my $creation_ts = datetime_from($bug->creation_ts);
- return ($creation_ts lt too_young_date()) ? 1 : 0;
+ return ($creation_ts && $creation_ts lt too_young_date()) ? 1 : 0;
}
# We put two things in the Sitemap: a list of Browse links for products,