Use squirrelmail.org
[squirrelmail.git] / templates / default / message_list_controls.tpl
index f9f026e0e47fda0a460cf340a0d59f49b7e721bd..0ef193c262b8268b48aa10cba22e0175f98ca76f 100644 (file)
@@ -63,7 +63,7 @@
  *    $compact_paginator
  *    $aErrors
  *
- * @copyright © 1999-2006 The SquirrelMail Project Team
+ * @copyright © 1999-2009 The SquirrelMail Project Team
  * @license http://opensource.org/licenses/gpl-license.php GNU Public License
  * @version $Id$
  * @package squirrelmail
@@ -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) {