From 66c614899b76175aa30e76d3f3ca4326fff3aee0 Mon Sep 17 00:00:00 2001 From: Byrne Date: Fri, 8 Oct 2010 11:10:14 -0700 Subject: [PATCH] [#236 state:resolved] Fixed last of warnings stemming from unit test no. 61. --- lib/MT/BackupRestore/BackupFileHandler.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/MT/BackupRestore/BackupFileHandler.pm b/lib/MT/BackupRestore/BackupFileHandler.pm index ff9623c7e..f900ad212 100644 --- a/lib/MT/BackupRestore/BackupFileHandler.pm +++ b/lib/MT/BackupRestore/BackupFileHandler.pm @@ -359,6 +359,7 @@ sub end_element { $self->{callback}->(($self->{state} ? $self->{state} . " " : '') . MT->translate("[_1] records restored...", $records), $data->{LocalName}) if $records && ($records % 10 == 0); + $records ||= 0; $self->{records} = $records + 1; my $cb = "restored.$name"; $cb .= ":$ns" if MT::BackupRestore::NS_MOVABLETYPE() ne $ns;