do not error out when the bookmark cannot be saved

This commit is contained in:
Christian Weiske 2011-03-22 21:08:17 +01:00
parent 21c583a4cd
commit f67250a720

View file

@ -20,6 +20,10 @@ function jsEscTitle($title)
{ {
return addcslashes($title, "'"); return addcslashes($title, "'");
} }
if (is_array($row['tags'])) {
$row['tags'] = implode(', ', $row['tags']);
}
?> ?>
<form action="<?php echo $formaction; ?>" method="post"> <form action="<?php echo $formaction; ?>" method="post">
<table> <table>
@ -62,7 +66,7 @@ function jsEscTitle($title)
<tr> <tr>
<th align="left"><?php echo T_('Tags'); ?></th> <th align="left"><?php echo T_('Tags'); ?></th>
<td class="scuttletheme"> <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>
<td> <?php echo T_('Comma-separated'); ?></td> <td> <?php echo T_('Comma-separated'); ?></td>
</tr> </tr>