From 55205138796b6f9c0b8914053b569ed1e71186b2 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Wed, 8 Dec 2004 19:41:16 +0000 Subject: - Modified patch by Goba: don't save user roles in the serialized data field of the user table. --- modules/user.module | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'modules/user.module') diff --git a/modules/user.module b/modules/user.module index 50074db5d..f6708d939 100644 --- a/modules/user.module +++ b/modules/user.module @@ -111,7 +111,8 @@ function user_save($account, $array = array(), $category = 'account') { $query .= "$key = '%s', "; $v[] = $value; } - else { + else if ($key != 'roles') { + // Roles is a special case: it used below. if ($value === null) { // Setting a field to null deletes it from the data column. unset($data[$key]); @@ -1732,4 +1733,4 @@ function _user_forms(&$edit, $account, $category, $hook = 'form') { return $output; } -?> \ No newline at end of file +?> -- cgit v1.2.3