diff options
author | sgiehl <stefan@piwik.org> | 2015-04-29 14:19:30 +0300 |
---|---|---|
committer | sgiehl <stefan@piwik.org> | 2015-04-29 14:19:30 +0300 |
commit | b8e17e6d71c683d122aecc7b93167df329ab3411 (patch) | |
tree | 574cca1176068dd18d94fba46198e900c9a45b9b /plugins/DevicesDetection | |
parent | ef02e852c5537571d197973ccece93853f25730e (diff) |
avoid notice
Diffstat (limited to 'plugins/DevicesDetection')
-rw-r--r-- | plugins/DevicesDetection/functions.php | 2 |
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; } /** |