make check for ->value better

This commit is contained in:
Evan Prodromou 2009-02-20 16:50:05 -05:00
parent 85eb53247d
commit a76099c59b

View File

@ -96,7 +96,7 @@ class NoticeSection extends Section
$this->out->elementStart('p', 'entry-content');
$this->out->raw($notice->rendered);
$this->out->elementEnd('p');
if ($notice->value) {
if (!empty($notice->value)) {
$this->out->elementStart('p');
$this->out->text($notice->value);
$this->out->elementEnd('p');