summaryrefslogtreecommitdiff
path: root/lib/location.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/location.php')
-rw-r--r--lib/location.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/location.php b/lib/location.php
index 5b7f47102..048554f0f 100644
--- a/lib/location.php
+++ b/lib/location.php
@@ -146,7 +146,7 @@ class Location
$language = common_language();
}
- if (array_key_exists($this->names, $language)) {
+ if (array_key_exists($language, $this->names)) {
return $this->names[$language];
} else {
$name = null;