#102174: Default filter format's roles were messed up.

5.x
Steven Wittens 2006-12-14 10:14:05 +00:00
parent f35c27cb68
commit 61e6e87a22
1 changed files with 1 additions and 1 deletions

View File

@ -522,7 +522,7 @@ function filter_admin_format_form_submit($form_id, $form_values) {
}
}
}
$roles = ','. implode(',', ($form_values['default_format'] ? user_roles() : $roles)) .',';
$roles = ','. implode(',', ($form_values['default_format'] ? array_keys(user_roles()) : $roles)) .',';
db_query("UPDATE {filter_formats} SET cache = %d, name='%s', roles = '%s' WHERE format = %d", $cache, $name, $roles, $format);