$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_('Description'); ?></th>
- <td><input type="text" name="description" size="75" maxlength="255" value="<?php echo filter($row['bDescription'], 'xml'); ?>" /></td>
+ <td><textarea name="description" cols="74" rows="5" maxlength="1000"><?php echo filter($row['bDescription'], 'xml'); ?></textarea></td>
<td></td>
</tr>
<tr>
<th align="left"><?php echo T_('Tags'); ?></th>
- <td><input 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>
</form>
<script type="text/javascript">
$(function() {
- $("#address").focus();
+ $("#tags").focus();
});
</script>
$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>
<?php
}
$this->includeTemplate($GLOBALS['bottom_include']);
-?>
\ No newline at end of file
+?>