]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
error in order of arguments to array_key_exists in location.php
authorEvan Prodromou <evan@status.net>
Thu, 22 Oct 2009 20:19:56 +0000 (16:19 -0400)
committerEvan Prodromou <evan@status.net>
Thu, 22 Oct 2009 20:19:56 +0000 (16:19 -0400)
lib/location.php

index 5b7f47102f412e420d5c7c654f92589ebffb6c3b..048554f0f7042fa5dc8cdbb4558bf7686c6da48c 100644 (file)
@@ -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;