From: Evan Prodromou Date: Fri, 20 Feb 2009 21:50:05 +0000 (-0500) Subject: make check for ->value better X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a76099c59b616004886e3c7add06db1de53e4acf;p=quix0rs-gnu-social.git make check for ->value better --- diff --git a/lib/noticesection.php b/lib/noticesection.php index 97b5175296..b31f187445 100644 --- a/lib/noticesection.php +++ b/lib/noticesection.php @@ -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');