X-Git-Url: https://projects.mako.cc/source/scuttle/blobdiff_plain/04b0f54876eb15dc6b7ccafffc893fcdc3fd379a..b35c59521deae7405997a24cefd523d9e3592665:/templates/editbookmark.tpl.php diff --git a/templates/editbookmark.tpl.php b/templates/editbookmark.tpl.php index e26c412..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']) {