From 99ae7cd47777f7d7176194d4caced9036fcb1f46 Mon Sep 17 00:00:00 2001 From: Jakob Sack Date: Sun, 19 Jun 2011 23:46:59 +0200 Subject: Autodetection of language is working now --- lib/l10n.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/l10n.php') diff --git a/lib/l10n.php b/lib/l10n.php index 8a7ff9d8535..f760d78c72b 100644 --- a/lib/l10n.php +++ b/lib/l10n.php @@ -224,7 +224,7 @@ class OC_L10N{ $accepted_languages = preg_split( '/,\s*/', $_SERVER['HTTP_ACCEPT_LANGUAGE'] ); foreach( $accepted_languages as $i ){ $temp = explode( ';', $i ); - if( array_key_exists( $temp[0], $available )){ + if( array_search( $temp[0], $available ) !== false ){ return $temp[0]; } } -- cgit v1.2.3