]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
make check for ->value better
authorEvan Prodromou <evan@controlyourself.ca>
Fri, 20 Feb 2009 21:50:05 +0000 (16:50 -0500)
committerEvan Prodromou <evan@controlyourself.ca>
Fri, 20 Feb 2009 21:50:05 +0000 (16:50 -0500)
lib/noticesection.php

index 97b51752965c1092c7bf7867e6d0aade184373ea..b31f18744557be91c42975ca0baaef70139271cb 100644 (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');