diff options
author | Gábor Hojtsy <gabor@hojtsy.hu> | 2007-07-25 15:35:14 +0000 |
---|---|---|
committer | Gábor Hojtsy <gabor@hojtsy.hu> | 2007-07-25 15:35:14 +0000 |
commit | 739a8574870971b813c396080b11ef365f183fd1 (patch) | |
tree | 112c4d9fb37814c08e9cfc92de6abb2b16ec9c2c /modules/filter | |
parent | f180790bb7f5c961245a788d7f19d0489b1ed04c (diff) | |
download | brdo-739a8574870971b813c396080b11ef365f183fd1.tar.gz brdo-739a8574870971b813c396080b11ef365f183fd1.tar.bz2 |
#161351 by webchick and mlsamuelson: fix notice on filter formats config page
Diffstat (limited to 'modules/filter')
-rw-r--r-- | modules/filter/filter.module | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/modules/filter/filter.module b/modules/filter/filter.module index f3c2e38ea..0f0cddb2a 100644 --- a/modules/filter/filter.module +++ b/modules/filter/filter.module @@ -495,7 +495,12 @@ function filter_admin_format_form_submit($form, &$form_state) { } } } - $roles = ','. implode(',', ($form_state['values']['default_format'] ? array_keys(user_roles()) : $roles)) .','; + if (!empty($form_state['values']['default_format'])) { + $roles = ','. implode(',', array_keys(user_roles())) .','; + } + else { + $roles = ','. implode(',', $roles) .','; + } db_query("UPDATE {filter_formats} SET cache = %d, name='%s', roles = '%s' WHERE format = %d", $cache, $name, $roles, $format); |