Groups: Fix exception on groups with empty description

This commit is contained in:
Maxim Leshchenko 2022-05-20 17:23:10 +01:00
parent 0818e507a8
commit f8c0071227
No known key found for this signature in database
GPG key ID: BB9C44A8733FBEEE

View file

@ -104,6 +104,8 @@ class Club extends RowModel
{ {
if(!is_null($this->getDescription())) if(!is_null($this->getDescription()))
return nl2br(htmlspecialchars($this->getDescription(), ENT_DISALLOWED | ENT_XHTML)); return nl2br(htmlspecialchars($this->getDescription(), ENT_DISALLOWED | ENT_XHTML));
else
return NULL;
} }
function getShortCode(): ?string function getShortCode(): ?string