From 2cedff64578d719d21d040bf9c44a344b2c1cb20 Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Wed, 11 Apr 2012 17:29:33 +0800 Subject: Bug 744018: fix "use of uninitialized value" warning --- extensions/SiteMapIndex/lib/Util.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'extensions/SiteMapIndex/lib') 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, -- cgit v1.2.3-24-g4f1b