removes useless code that hinders understandability

This commit is contained in:
Martin Monperrus
2014-04-01 18:30:51 +02:00
parent 0a2c97b68c
commit ed120ab4cf
+1 -1
View File
@@ -1230,7 +1230,7 @@ class BibEntry {
* Returns a compacted string form of author names by throwing away * Returns a compacted string form of author names by throwing away
* all author names except for the first one and appending ", et al." * all author names except for the first one and appending ", et al."
*/ */
function getCompactedAuthors($author){ function getCompactedAuthors(){
$authors = $this->getRawAuthors(); $authors = $this->getRawAuthors();
$etal = count($authors) > 1 ? ', et al.' : ''; $etal = count($authors) > 1 ? ', et al.' : '';
return $this->formatAuthor($authors[0]) . $etal; return $this->formatAuthor($authors[0]) . $etal;