diff options
author | Dave Lawrence <dlawrence@mozilla.com> | 2013-03-06 18:13:16 +0100 |
---|---|---|
committer | Dave Lawrence <dlawrence@mozilla.com> | 2013-03-06 18:13:16 +0100 |
commit | 7f934cfcf2ec751f58d4c95f181985460e0861dd (patch) | |
tree | db4ec60a9700a17526bcd5cd0439eb1c38c56656 /extensions/SiteMapIndex | |
parent | 2c53285132b9fe28ac3c25a2ea938aad85e32b0a (diff) | |
download | bugzilla-7f934cfcf2ec751f58d4c95f181985460e0861dd.tar.gz bugzilla-7f934cfcf2ec751f58d4c95f181985460e0861dd.tar.xz |
extensions::SiteMapIndex::Util::bug_is_ok_to_index:
Use of uninitialized value $date in substitution (s///) at /data/www/bugzilla.mozilla.org/Bugzilla/Util.pm line 544.
Diffstat (limited to 'extensions/SiteMapIndex')
-rw-r--r-- | extensions/SiteMapIndex/lib/Util.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/extensions/SiteMapIndex/lib/Util.pm b/extensions/SiteMapIndex/lib/Util.pm index b0e4c6eab..5c02a5989 100644 --- a/extensions/SiteMapIndex/lib/Util.pm +++ b/extensions/SiteMapIndex/lib/Util.pm @@ -44,7 +44,7 @@ sub too_young_date { sub bug_is_ok_to_index { my ($bug) = @_; - return 1 unless blessed($bug) && $bug->isa('Bugzilla::Bug'); + return 1 unless blessed($bug) && $bug->isa('Bugzilla::Bug') && !$bug->{error}; my $creation_ts = datetime_from($bug->creation_ts); return ($creation_ts && $creation_ts lt too_young_date()) ? 1 : 0; } |