diff --git a/inc/html.php b/inc/html.php
index 7849cc8099be77490a94c7363c97d0d3aca2db0e..04bb986c5dddd09c355ded5886509a6577664f05 100644
--- a/inc/html.php
+++ b/inc/html.php
@@ -137,7 +137,7 @@ function html_secedit_get_button($data) {
     unset($data['secid']);
 
     return "<div class='secedit editbutton_" . $data['target'] .
-                       " editbutton_" . $data['secid'] . "'>" .
+                       " editbutton_" . $secid . "'>" .
            html_btn('secedit', $ID, '',
                     array_merge(array('do'  => 'edit',
                                       'rev' => $INFO['lastmod']), $data),