Improve results when presented with invalid data. #701

This commit is contained in:
James Cole
2017-07-14 17:57:20 +02:00
parent 5cf8f2f4f4
commit 3b3579025d
3 changed files with 53 additions and 15 deletions

View File

@@ -65,6 +65,19 @@ class ImportJournal
/** @var User */
private $user;
/**
* @return string
*/
public function getDescription(): string
{
if ($this->description === '') {
return '(no description)';
}
return $this->description;
}
/**
* ImportEntry constructor.
*/