summaryrefslogtreecommitdiffstats
path: root/lib/private/l10n.php
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@owncloud.com>2013-10-23 15:38:22 +0200
committerAndreas Fischer <bantu@owncloud.com>2013-10-23 15:38:22 +0200
commitc14b470ea24258b0402ad8ee783646d23c6693b9 (patch)
treeca88177936a663db7670c7015659080e05908132 /lib/private/l10n.php
parent4c76dd38719f28d6c995047e2ac6154ec20c2ad5 (diff)
downloadnextcloud-server-c14b470ea24258b0402ad8ee783646d23c6693b9.tar.gz
nextcloud-server-c14b470ea24258b0402ad8ee783646d23c6693b9.zip
Apply substring on the correct value.
Diffstat (limited to 'lib/private/l10n.php')
-rw-r--r--lib/private/l10n.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/l10n.php b/lib/private/l10n.php
index 9f89f0d03e3..62827312d32 100644
--- a/lib/private/l10n.php
+++ b/lib/private/l10n.php
@@ -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;
}