summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;