From 7d272e5c04141529309fe2924d0aac93f17b56ea Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 15 Mar 2013 10:05:48 +0400 Subject: [PATCH] fix warning in hotkey help dialog when disabled hotkey is processed --- classes/backend.php | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/classes/backend.php b/classes/backend.php index d9a7a9fe..5473c5c7 100644 --- a/classes/backend.php +++ b/classes/backend.php @@ -39,18 +39,19 @@ class Backend extends Handler { foreach ($hotkeys as $action => $description) { - foreach ($omap[$action] as $sequence) { - if (strpos($sequence, "|") !== FALSE) { - $sequence = substr($sequence, - strpos($sequence, "|")+1, - strlen($sequence)); + if (is_array($omap[$action])) { + foreach ($omap[$action] as $sequence) { + if (strpos($sequence, "|") !== FALSE) { + $sequence = substr($sequence, + strpos($sequence, "|")+1, + strlen($sequence)); + } + + print "
  • "; + print "$sequence"; + print $description; + print "
  • "; } - - print "
  • "; - print "$sequence"; - print $description; - print "
  • "; - } } } -- 2.39.2