Apply substring on the correct value.

This commit is contained in:
Andreas Fischer 2013-10-23 15:38:22 +02:00
parent 4c76dd3871
commit c14b470ea2
1 changed files with 1 additions and 1 deletions

View File

@ -469,7 +469,7 @@ class OC_L10N implements \OCP\IL10N {
return $available[$key];
}
foreach($available as $available_language) {
if ($prefered_language == substr($available_language, 0, 2)) {
if (substr($prefered_language, 0, 2) === $available_language) {
if (is_null($app)) {
self::$language = $available_language;
}