summaryrefslogtreecommitdiff
path: root/classes/backend.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-02-06 17:56:47 +0300
committerAndrew Dolgov <[email protected]>2021-02-06 17:56:47 +0300
commit41fc03287e889d4dc7ac60a93832b79065c041cb (patch)
tree8dc463ed8fa28ccbd762cab0088b5151b89dbb7e /classes/backend.php
parentc94f1b6ff8a2a82fa0d6ad725144c5380fd0df7b (diff)
fix even more warnings reported by phpstan
Diffstat (limited to 'classes/backend.php')
-rw-r--r--classes/backend.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/backend.php b/classes/backend.php
index 16c20660a..6e0fa191e 100644
--- a/classes/backend.php
+++ b/classes/backend.php
@@ -40,7 +40,7 @@ class Backend extends Handler_Protected {
foreach ($hotkeys as $action => $description) {
- if (is_array($omap[$action])) {
+ if (!empty($omap[$action])) {
foreach ($omap[$action] as $sequence) {
if (strpos($sequence, "|") !== false) {
$sequence = substr($sequence,