$accessPublic = '';
$accessShared = '';
$accessPrivate = '';
-switch ($row['bStatus']) {
- case 0 :
- $accessPublic = ' selected="selected"';
- break;
- case 1 :
- $accessShared = ' selected="selected"';
- break;
- case 2 :
- $accessPrivate = ' selected="selected"';
- break;
+
+if (isset($row['bStatus'])) {
+ switch ($row['bStatus']) {
+ case 0 :
+ $accessPublic = ' selected="selected"';
+ break;
+ case 1 :
+ $accessShared = ' selected="selected"';
+ break;
+ case 2 :
+ $accessPrivate = ' selected="selected"';
+ break;
+ }
}
?>
</tr>
<tr>
<th align="left"><?php echo T_('Tags'); ?></th>
- <td><input class="autocomplete" type="text" id="tags" name="tags" size="75" value="<?php echo filter(implode(', ', $row['tags']), 'xml'); ?>" /></td>
+ <td><input type="text" id="tags" name="tags" size="75" value="<?php if (isset($row['tags'])) { echo filter(implode(', ', $row['tags']), 'xml'); }?>" /></td>
<td>← <?php echo T_('Comma-separated'); ?></td>
</tr>
<tr>
<td></td>
<td>
<input type="submit" name="submitted" value="<?php echo $btnsubmit; ?>" />
- <?php if ($showdelete): ?>
+ <?php if (isset($showdelete) && $showdelete): ?>
<input type="submit" name="delete" value="<?php echo T_('Delete Bookmark'); ?>" />
<?php endif; ?>
<?php if ($popup): ?>
<input type="hidden" name="popup" value="1" />
- <?php elseif ($referrer): ?>
+ <?php elseif (isset($referrer) && $referrer): ?>
<input type="hidden" name="referrer" value="<?php echo $referrer; ?>" />
<?php endif; ?>
</td>
$this->includeTemplate('dynamictags.inc');
// Bookmarklets and import links
-if (empty($_REQUEST['popup']) && !$showdelete) {
+if (empty($_REQUEST['popup']) && (!isset($showdelete) || !$showdelete)) {
?>
<h3><?php echo T_('Bookmarklet'); ?></h3>