Don't output author email, if it doesn't exist, and add missing space.

This commit is contained in:
Jan Schneider
2017-05-29 14:16:37 +02:00
committed by Jaap van Otterdijk
parent 1d3dd12a7f
commit 8ba65bc4f0
+1 -1
View File
@@ -73,7 +73,7 @@ final class Author extends BaseTag implements Factory\StaticMethod
*/ */
public function __toString() public function __toString()
{ {
return $this->authorName . '<' . $this->authorEmail . '>'; return $this->authorName . (strlen($this->authorEmail) ? ' <' . $this->authorEmail . '>' : '');
} }
/** /**