Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/l10n.php2
1 files changed, 1 insertions, 1 deletions
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];
}
}