diff options
author | Christian Weiske <cweiske@cweiske.de> | 2011-03-22 21:08:17 +0100 |
---|---|---|
committer | Christian Weiske <cweiske@cweiske.de> | 2011-03-22 21:08:17 +0100 |
commit | f67250a720c96031309f7c9ed129bb30e4972242 (patch) | |
tree | 3aa651a528a6c7e9999debfee0b917c7363a2861 | |
parent | 21c583a4cd7c6c74ba8f907c962df8718fc2b3a1 (diff) | |
download | semanticscuttle-f67250a720c96031309f7c9ed129bb30e4972242.tar.gz semanticscuttle-f67250a720c96031309f7c9ed129bb30e4972242.tar.bz2 |
do not error out when the bookmark cannot be saved
-rw-r--r-- | data/templates/editbookmark.tpl.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/data/templates/editbookmark.tpl.php b/data/templates/editbookmark.tpl.php index 0bfdb29..727ee1a 100644 --- a/data/templates/editbookmark.tpl.php +++ b/data/templates/editbookmark.tpl.php @@ -20,6 +20,10 @@ function jsEscTitle($title) { return addcslashes($title, "'"); } + +if (is_array($row['tags'])) { + $row['tags'] = implode(', ', $row['tags']); +} ?> <form action="<?php echo $formaction; ?>" method="post"> <table> @@ -62,7 +66,7 @@ function jsEscTitle($title) <tr> <th align="left"><?php echo T_('Tags'); ?></th> <td class="scuttletheme"> - <input type="text" id="tags" name="tags" size="75" value="<?php echo filter(implode(', ', $row['tags']), 'xml'); ?>"/> + <input type="text" id="tags" name="tags" size="75" value="<?php echo filter($row['tags'], 'xml'); ?>"/> </td> <td>← <?php echo T_('Comma-separated'); ?></td> </tr> |