X-Git-Url: https://projects.mako.cc/source/scuttle/blobdiff_plain/2410018fe8ea7f74c2f7847d4cefc3d822f4c64d..HEAD:/templates/editbookmark.tpl.php diff --git a/templates/editbookmark.tpl.php b/templates/editbookmark.tpl.php index fbb21bd..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; + } } ?> @@ -36,7 +39,7 @@ switch ($row['bStatus']) {