Skip to content

Commit

Permalink
Merge pull request #82 from wmde/fix-authors-name
Browse files Browse the repository at this point in the history
bug fix: attribution missing authors name
  • Loading branch information
manicki committed Aug 7, 2015
2 parents 6e6764e + b2049c7 commit 4d79528
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/AttributionGenerator.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,9 @@ $.extend( AttributionGenerator.prototype, {
// Prefer attribution over author:
var $attribution = this._asset.getAttribution();
if( $attribution ) {
return format === 'html' ? $attribution : $attribution.text();
if( $attribution.length && $attribution.text().length ) {
return format === 'html' ? $attribution : $attribution.text();
}
}

var authors = this._asset.getAuthors(),
Expand Down

0 comments on commit 4d79528

Please sign in to comment.