]> git.mjollnir.org Git - s9y.git/commitdiff
Modified output code for serendipity_plugin_history to not display outro if empty.
authoryellowled <yellowled>
Mon, 14 Apr 2008 05:00:09 +0000 (05:00 +0000)
committeryellowled <yellowled>
Mon, 14 Apr 2008 05:00:09 +0000 (05:00 +0000)
plugins/serendipity_plugin_history/serendipity_plugin_history.php

index 6006c333311c425915f851cd04c61d73c8f4193e..6b39f53d8bf1c0a83e330203b8f55a02b4af966b 100644 (file)
@@ -193,7 +193,7 @@ class serendipity_plugin_history extends serendipity_plugin
             echo '<div class="serendipity_history_info"><span class="serendipity_history_author">' . $author . '</span> <span class="serendipity_history_date">'. $date . "</span> <a href='$url' title='".str_replace("'", '`', htmlspecialchars($e[$x]['title']))."'>". htmlspecialchars($t) . '</a></div>' .
                  strip_tags($e[$x]['body']) . '<br />';
         }
-        echo '<div class="serendipity_history_outro">' . $outro . '</div>';
+        echo (empty($outro)) ? '' : '<div class="serendipity_history_outro">' . $outro . '</div>';
     }
 }