Existence checking, remove redundant value attribute
authorMichael J. Rubinsky <mrubinsk@horde.org>
Sat, 31 Jan 2009 00:38:50 +0000 (19:38 -0500)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Sat, 31 Jan 2009 14:54:39 +0000 (09:54 -0500)
kronolith/templates/edit/edit.inc

index 5007393..6c9e513 100644 (file)
@@ -409,7 +409,7 @@ endif;
 <tr>
 <td colspan="5" class="control toggle" onclick="toggleSection('tags')">
  <?php echo Horde::img('tree/blank.png', '', array('id' => 'toggle_tags'), $GLOBALS['registry']->getImageDir('horde')) . ' <strong>' . _("Tags") ?></strong>
-  <span class="extra" id="extra_tags"><?php echo $tags?></span>
+  <span class="extra" id="extra_tags"><?php echo (!empty($tags) ? $tags : '');?></span>
   </td>
 </tr>
 <tr id="section_tags">
@@ -417,7 +417,7 @@ endif;
      <strong><?php echo Horde::label('tags', _("Tags"))?></strong>
  </td>
  <td colspan="4">
-   <input type="text" name="tags" id="tags" value="<?php echo $tags?>" size="40" value="<?php echo $tags?>" />
+   <input type="text" name="tags" id="tags" value="<?php echo (!empty($tags) ? $tags : '')?>" size="40" />
  </td>
 </tr>