summaryrefslogtreecommitdiff
path: root/program/include
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2008-09-24 10:41:44 +0000
committeralecpl <alec@alec.pl>2008-09-24 10:41:44 +0000
commitd6869a66938db760a6b10990f0dbccc81347ffb3 (patch)
tree452ae1187ede712b6055ba561f077bc9c7b887d3 /program/include
parent7315902cb283e5daa8cc2700fe295c03bb8f4c82 (diff)
- Fix language autodetection (#1485401)
Diffstat (limited to 'program/include')
-rw-r--r--program/include/rcube_user.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/program/include/rcube_user.php b/program/include/rcube_user.php
index 97de97b37..8c77fdcf4 100644
--- a/program/include/rcube_user.php
+++ b/program/include/rcube_user.php
@@ -78,7 +78,8 @@ class rcube_user
*/
function get_prefs()
{
- $prefs = array('language' => $this->language);
+ if (!empty($this->language))
+ $prefs = array('language' => $this->language);
if ($this->ID && $this->data['preferences'])
$prefs += (array)unserialize($this->data['preferences']);