summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Bugzilla/Update.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/Bugzilla/Update.pm b/Bugzilla/Update.pm
index 596290ab9..f2b17a6b0 100644
--- a/Bugzilla/Update.pm
+++ b/Bugzilla/Update.pm
@@ -173,8 +173,8 @@ sub _synchronize_data {
sub _compare_versions {
my ($old_ver, $new_ver) = @_;
while (scalar(@$old_ver) && scalar(@$new_ver)) {
- my $old = shift(@$old_ver);
- my $new = shift(@$new_ver);
+ my $old = shift(@$old_ver) || 0;
+ my $new = shift(@$new_ver) || 0;
return $new <=> $old if ($new <=> $old);
}
return scalar(@$new_ver) <=> scalar(@$old_ver);