Plugins may not specify button access keys
authorpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 26 Mar 2009 20:42:35 +0000 (20:42 +0000)
committerpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 26 Mar 2009 20:42:35 +0000 (20:42 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@13452 7612ce4b-ef26-0410-bec9-ea0150e637f0

templates/default/message_list_controls.tpl

index f9f026e..dffde0f 100644 (file)
@@ -87,7 +87,8 @@ extract($t);
             case 'submit':
                 if ($widget_name != 'moveButton' && $widget_name != 'copyButton' && $widget_name != 'delete' && $widget_name != 'undeleteButton') { // add these later in another table cell
                     echo '<input type="submit" name="' . $widget_name . '" value="' . $widget_attrs['value'] . '" class="message_control_button"';
-                    if ($widget_attrs['accesskey'] != 'NONE')
+                    if (isset($widget_attrs['accesskey'])
+                      && $widget_attrs['accesskey'] != 'NONE')
                         echo ' accesskey="' . $widget_attrs['accesskey'] . '"';
                     if (!empty($widget_attrs['extra_attrs'])) {
                         foreach ($widget_attrs['extra_attrs'] as $attr => $val) {