From e8da64fdfaa8647838ceb9543f1620b2bca4efaf Mon Sep 17 00:00:00 2001 From: Florent Bruneau Date: Sun, 1 Jun 2008 21:17:59 +0200 Subject: [PATCH] Oops, strange structure. Signed-off-by: Florent Bruneau --- class.xorg.auth.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/class.xorg.auth.php b/class.xorg.auth.php index 868cdfd..fb1b33d 100644 --- a/class.xorg.auth.php +++ b/class.xorg.auth.php @@ -54,8 +54,9 @@ class xorgAuth extends dcAuth { $cur->user_firstname = $_SESSION['auth-xorg-prenom']; $cur->user_displayname = $cur->user_firstname . ' ' . $cur->user_name; $cur->user_email = $_SESSION['auth-xorg'] . '@polytechnique.org'; - $cur->user_options = $core->userDefaults(); - $cur->user_options['post_xorg_perms'] = 'public'; + $defaults = $core->userDefaults(); + $defaults['post_xorg_perms'] = 'public'; + $cur->user_options = $defaults; $cur->user_default_blog = $_SERVER['DC_BLOG_ID']; $core->addUser($cur); } -- 2.1.4