Sophie

Sophie

distrib > Mandriva > 2007.0 > i586 > by-pkgid > 59b739394320736958cb89b551854d0d > files > 4

perl-MDV-Repsys-0.08-4mdv2007.0.src.rpm

Index: lib/MDV/Repsys/Remote.pm
===================================================================
--- lib/MDV/Repsys/Remote.pm	(revision 58661)
+++ lib/MDV/Repsys/Remote.pm	(revision 58662)
@@ -218,8 +218,8 @@
             push(
                 @cl,
                 {
-                    'time' => str2time($1, 'UTC'),
-                    author => $2,
+                    'time' => str2time($1, 'UTC') || 0,
+                    author => $2 || '',
                     text => '',
                 }
             );
@@ -241,12 +241,13 @@
 
     my $callback = sub {
         my ($changed_paths, $revision, $author, $date, $message) = @_;
+        my ($auth) = $self->{config}->val('users', $author, $author);
         push(
             @cl, 
             {
-                revision => $revision,
-                author => $self->{config}->val('users', $author, $author),
-                'time' => str2time($date),
+                revision => $revision || 0,
+                author => $auth,
+                'time' => str2time($date) || 0,
                 text => "$message\n",
             }
         );