summaryrefslogtreecommitdiff
path: root/modules/filter.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2005-10-31 13:57:17 +0000
committerDries Buytaert <dries@buytaert.net>2005-10-31 13:57:17 +0000
commit6938e6cbe85916101971dc260313679f4bfc8373 (patch)
treec5488e2fc4cb8850271db36e3e2b9b728c7ea4ba /modules/filter.module
parent98d1979699e2783e86e35aa55d34f0f75f1bbd87 (diff)
downloadbrdo-6938e6cbe85916101971dc260313679f4bfc8373.tar.gz
brdo-6938e6cbe85916101971dc260313679f4bfc8373.tar.bz2
- Patch #35320 by asimmonds: couldn't save roles in admin/filters/...
Diffstat (limited to 'modules/filter.module')
-rw-r--r--modules/filter.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/filter.module b/modules/filter.module
index c09864a83..9251d79c0 100644
--- a/modules/filter.module
+++ b/modules/filter.module
@@ -475,7 +475,7 @@ function filter_admin_filters_save($format, $toggles) {
// 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);