X-Git-Url: https://projects.mako.cc/source/scuttle/blobdiff_plain/72c7cbb2e150516ad71681339544650f9d89bdd7..91d3a96bb7741ba92d2d3d7a7dc7d18e0d79688f:/templates/editbookmark.tpl.php?ds=sidebyside diff --git a/templates/editbookmark.tpl.php b/templates/editbookmark.tpl.php index 16b56c7..358b239 100644 --- a/templates/editbookmark.tpl.php +++ b/templates/editbookmark.tpl.php @@ -4,16 +4,19 @@ $this->includeTemplate($GLOBALS['top_include']); $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; + } } ?> @@ -31,12 +34,12 @@ switch ($row['bStatus']) { - + - + @@ -54,12 +57,12 @@ switch ($row['bStatus']) { - + - + @@ -69,7 +72,7 @@ switch ($row['bStatus']) { @@ -78,7 +81,7 @@ $(function() { $this->includeTemplate('dynamictags.inc'); // Bookmarklets and import links -if (empty($_REQUEST['popup']) && !$showdelete) { +if (empty($_REQUEST['popup']) && (!isset($showdelete) || !$showdelete)) { ?>

@@ -108,4 +111,4 @@ document.write('<\/ul>'); includeTemplate($GLOBALS['bottom_include']); -?> \ No newline at end of file +?>