summaryrefslogtreecommitdiff
path: root/roundcubemail/program/include/rcube_user.php
diff options
context:
space:
mode:
authorthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-09-16 08:59:48 +0000
committerthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-09-16 08:59:48 +0000
commitf092bde10e861befa7ad6a27a424609121b4dd1d (patch)
treea7d86226e261bd5eafb13de3d845c16977d85362 /roundcubemail/program/include/rcube_user.php
parenta027e112b9d3a2e6e2c5bbcc780635ff14fcb621 (diff)
Always return language prop even if no other prefs are saved
git-svn-id: https://svn.roundcube.net/trunk@1802 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/include/rcube_user.php')
-rw-r--r--roundcubemail/program/include/rcube_user.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/roundcubemail/program/include/rcube_user.php b/roundcubemail/program/include/rcube_user.php
index a5dc73bca..cc09028f1 100644
--- a/roundcubemail/program/include/rcube_user.php
+++ b/roundcubemail/program/include/rcube_user.php
@@ -78,10 +78,12 @@ class rcube_user
*/
function get_prefs()
{
+ $prefs = array('language' => $this->language);
+
if ($this->ID && $this->data['preferences'])
- return array('language' => $this->language) + unserialize($this->data['preferences']);
- else
- return array();
+ $prefs += (array)unserialize($this->data['preferences']);
+
+ return $prefs;
}