]> gitweb.fluxo.info Git - semanticscuttle.git/commitdiff
do not error out when the bookmark cannot be saved
authorChristian Weiske <cweiske@cweiske.de>
Tue, 22 Mar 2011 20:08:17 +0000 (21:08 +0100)
committerChristian Weiske <cweiske@cweiske.de>
Tue, 22 Mar 2011 20:08:17 +0000 (21:08 +0100)
data/templates/editbookmark.tpl.php

index 0bfdb29a5ffad2356a8d26836cd42e0c5db72963..727ee1a3a2fdce93c9184f32d9feaab79619c69c 100644 (file)
@@ -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>