Skip to content

Commit 4d79528

Browse files
committed
Merge pull request #82 from wmde/fix-authors-name
bug fix: attribution missing authors name
2 parents 6e6764e + b2049c7 commit 4d79528

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/AttributionGenerator.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,9 @@ $.extend( AttributionGenerator.prototype, {
158158
// Prefer attribution over author:
159159
var $attribution = this._asset.getAttribution();
160160
if( $attribution ) {
161-
return format === 'html' ? $attribution : $attribution.text();
161+
if( $attribution.length && $attribution.text().length ) {
162+
return format === 'html' ? $attribution : $attribution.text();
163+
}
162164
}
163165

164166
var authors = this._asset.getAuthors(),

0 commit comments

Comments
 (0)