Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsgiehl <stefan@piwik.org>2015-04-29 14:19:30 +0300
committersgiehl <stefan@piwik.org>2015-04-29 14:19:30 +0300
commitb8e17e6d71c683d122aecc7b93167df329ab3411 (patch)
tree574cca1176068dd18d94fba46198e900c9a45b9b /plugins/DevicesDetection
parentef02e852c5537571d197973ccece93853f25730e (diff)
avoid notice
Diffstat (limited to 'plugins/DevicesDetection')
-rw-r--r--plugins/DevicesDetection/functions.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/DevicesDetection/functions.php b/plugins/DevicesDetection/functions.php
index d19f0e3b46..87adadc541 100644
--- a/plugins/DevicesDetection/functions.php
+++ b/plugins/DevicesDetection/functions.php
@@ -266,7 +266,7 @@ function _mapLegacyOsShortCodes($shortCode)
'WXP' => 'WIN',
//'VMS' => '', // OpenVMS => ??
);
- return array_key_exists($shortCode, $legacyShortCodes) ? $legacyShortCodes[$shortCode] : $shortCode;
+ return ($shortCode && array_key_exists($shortCode, $legacyShortCodes)) ? $legacyShortCodes[$shortCode] : $shortCode;
}
/**