Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
single_valued_arrayref_to_scalar is a function, not a method.
  • Loading branch information
oalders committed May 11, 2017
1 parent 56bb447 commit 2f022e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/MetaCPAN/Web/Controller/Author.pm
Expand Up @@ -72,7 +72,7 @@ sub index : Chained('root') PathPart('') Args(0) {
$noLatest->{no_latest}->{$distro} ? () : $_->{fields};
} @{ $faves_data->{hits}->{hits} }
];
$self->single_valued_arrayref_to_scalar($faves);
single_valued_arrayref_to_scalar($faves);
$faves = [ sort { $b->{date} cmp $a->{date} } @{$faves} ];
}

Expand Down

0 comments on commit 2f022e4

Please sign in to comment.