Update of /cvsroot/php-blog/serendipity
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9526
Modified Files:
serendipity_functions.inc.php
Log Message:
Don't show span element if there are no messages to display
Index: serendipity_functions.inc.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/serendipity_functions.inc.php,v
retrieving revision 1.352
retrieving revision 1.353
diff -u -d -r1.352 -r1.353
--- serendipity_functions.inc.php 20 Jul 2004 17:02:29 -0000 1.352
+++ serendipity_functions.inc.php 20 Jul 2004 17:05:17 -0000 1.353
@@ -2728,8 +2728,11 @@
$hidden .= ' <input type="hidden" name="serendipity[id]" value="' . (isset($entry['id']) ? $entry['id'] : '') . '" />' . $n;
$hidden .= ' <input type="hidden" name="serendipity[timestamp]" value="' . (isset($entry['timestamp']) ? $entry['timestamp'] : '') . '" />' . $n;
$hidden .= ' <input type="hidden" name="serendipity[preview]" value="false" />';
+
+ if (!empty($errMsg)) {
?>
<span class="serendipity_msg_important"><?php echo $errMsg; ?></span>
+<?php } ?>
<form action="<?php echo $targetURL; ?>" method="post" <?php echo ($serendipity['XHTML11'] ? 'id' : 'name'); ?>="serendipityEntry" style="margin-top: 0px; margin-bottom: 0px; padding-top: 0px; padding-bottom: 0px">
<?php echo $hidden; ?>
|