Commit 31ab842c authored by Dries's avatar Dries

- Modified patch by Goba: don't save user roles in the serialized data field of the user table.

parent 1915e293
......@@ -114,7 +114,7 @@ function user_save($account, $array = array(), $category = 'account') {
$query .= "$key = '%s', ";
$v[] = $value;
}
else {
else if ($key != 'roles') {
if ($value === null) {
// Setting a field to null deletes it from the data column.
unset($data[$key]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment