Index: modules/filter.module =================================================================== RCS file: /cvs/drupal/drupal/modules/filter.module,v retrieving revision 1.77 diff -u -F^f -r1.77 filter.module --- modules/filter.module 22 Oct 2005 15:14:46 -0000 1.77 +++ modules/filter.module 26 Oct 2005 13:11:33 -0000 @@ -475,7 +475,7 @@ function filter_admin_filters_save($form // We store the roles as a string for ease of use. // we should always set all roles to true when saving a default role. // We use leading and trailing comma's to allow easy substring matching. - $roles = isset($edit['roles']) ? $edit['roles'] : array(); + $roles = isset($edit['roles']) ? array_keys($edit['roles']) : array(); $roles = ','. implode(',', ($edit['default_format'] ? user_roles() : $roles)) .','; db_query("UPDATE {filter_formats} SET cache = %d, name='%s', roles = '%s' WHERE format = %d", $cache, $name, $roles, $format);