Skip to content

Commit

Permalink
Don't overwrite author profiles for users without a CPAN author dir.
Browse files Browse the repository at this point in the history
  • Loading branch information
oalders committed Aug 25, 2012
1 parent 1f622d1 commit 5f31529
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/MetaCPAN/Script/Author.pm
Expand Up @@ -96,7 +96,7 @@ sub author_config {
my $dir = $self->cpan->subdir( 'authors',
MetaCPAN::Util::author_dir($pauseid) );
my @files;
opendir( my $dh, $dir ) || return {};
opendir( my $dh, $dir ) || return $fallback;
my ($file)
= sort { $dir->file($b)->stat->mtime <=> $dir->file($a)->stat->mtime }
grep {m/author-.*?\.json/} readdir($dh);
Expand Down

0 comments on commit 5f31529

Please sign in to comment.