diff --git a/templates/bookmarks.tpl.php b/templates/bookmarks.tpl.php
index e27bc3e..2b673b7 100644
--- a/templates/bookmarks.tpl.php
+++ b/templates/bookmarks.tpl.php
@@ -227,7 +227,7 @@ if($currenttag!= '') {
// Edit and delete links
$edit = '';
- if ($bookmarkservice->editAllowed($row['bId'])) {
+ if ($bookmarkservice->editAllowed($row)) {
$edit = ' - '. T_('Edit') .'';
}