Skip to content

Commit

Permalink
Nightly page: Fix a warning when we have no bug fixed for a build
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalchevrel committed May 12, 2024
1 parent d4ddbf8 commit b8bd6ff
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/models/nightly.php
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,12 @@
// In this section, we extract outstanding bugs
$outstanding_bugs = [];
foreach ($bug_list as $key => $values) {

if (empty($values['bugs'])) {
// We may have a build with no patch from Bugzilla
continue;
}

foreach ($values['bugs'] as $bug_details) {
// Old bugs fixed are often interesting
if ($bug_details['id'] < 1_500_000) {
Expand Down

0 comments on commit b8bd6ff

Please sign in to comment.