* $currentBuilds{id} can be 0.

This commit is contained in:
Eelco Dolstra 2010-03-05 17:48:00 +00:00
parent 70466156e6
commit 82a325a8cd

View file

@ -151,7 +151,7 @@ sub checkJobset {
# Clear the "current" flag on all builds that are no longer # Clear the "current" flag on all builds that are no longer
# current. # current.
foreach my $build ($jobset->builds->search({iscurrent => 1})) { foreach my $build ($jobset->builds->search({iscurrent => 1})) {
$build->update({iscurrent => 0}) unless $currentBuilds{$build->id}; $build->update({iscurrent => 0}) unless defined $currentBuilds{$build->id};
} }
my $hasNewBuilds = 0; my $hasNewBuilds = 0;