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:
authorJakob Sack <kde@jakobsack.de>2011-06-19 18:05:23 +0400
committerJakob Sack <kde@jakobsack.de>2011-06-19 18:06:05 +0400
commita688e5a5b1d34abba1b2b59ae790022a40ff3d29 (patch)
tree8845dbbe42b97d966599a4ad0f7d4fd8d21d8980 /lib/l10n.php
parentd5b550395af51d1299da4600870a403b7f7921d8 (diff)
Load preferences only if user is registered
Diffstat (limited to 'lib/l10n.php')
-rw-r--r--lib/l10n.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/l10n.php b/lib/l10n.php
index 47d331b3fc6..e800941e3d3 100644
--- a/lib/l10n.php
+++ b/lib/l10n.php
@@ -197,7 +197,7 @@ class OC_L10N{
}
}
- if( isset($_SESSION['user_id']) && OC_PREFERENCES::getValue( $_SESSION['user_id'], 'core', 'lang' )){
+ if( isset($_SESSION['user_id']) && $_SESSION['user_id'] && OC_PREFERENCES::getValue( $_SESSION['user_id'], 'core', 'lang' )){
$lang = OC_PREFERENCES::getValue( $_SESSION['user_id'], 'core', 'lang' );
self::$language = $lang;
if( array_search( $lang, $available )){