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:
authorThomas Steur <tsteur@users.noreply.github.com>2014-08-20 15:45:45 +0400
committerThomas Steur <tsteur@users.noreply.github.com>2014-08-20 15:45:45 +0400
commit880ba14b55d37986696c5637ef017f163a3ea70d (patch)
tree3495aa4b683ab31a30a67f3d642e2a617823510b /core/Common.php
parent90f65a0343d2c7af26afb4f6dd04a617267ab52a (diff)
refs #6026 test for empty in case getenv returns false
Diffstat (limited to 'core/Common.php')
-rw-r--r--core/Common.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/Common.php b/core/Common.php
index 3b49dc9bd9..ecfefabcec 100644
--- a/core/Common.php
+++ b/core/Common.php
@@ -857,7 +857,7 @@ class Common
}
}
- if (is_null($browserLang)) {
+ if (empty($browserLang)) {
// a fallback might be to infer the language in HTTP_USER_AGENT (i.e., localized build)
$browserLang = "";
} else {