make check for ->value better
This commit is contained in:
parent
85eb53247d
commit
a76099c59b
@ -96,7 +96,7 @@ class NoticeSection extends Section
|
|||||||
$this->out->elementStart('p', 'entry-content');
|
$this->out->elementStart('p', 'entry-content');
|
||||||
$this->out->raw($notice->rendered);
|
$this->out->raw($notice->rendered);
|
||||||
$this->out->elementEnd('p');
|
$this->out->elementEnd('p');
|
||||||
if ($notice->value) {
|
if (!empty($notice->value)) {
|
||||||
$this->out->elementStart('p');
|
$this->out->elementStart('p');
|
||||||
$this->out->text($notice->value);
|
$this->out->text($notice->value);
|
||||||
$this->out->elementEnd('p');
|
$this->out->elementEnd('p');
|
||||||
|
Loading…
Reference in New Issue
Block a user