From 739a8574870971b813c396080b11ef365f183fd1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Hojtsy?= Date: Wed, 25 Jul 2007 15:35:14 +0000 Subject: #161351 by webchick and mlsamuelson: fix notice on filter formats config page --- modules/filter/filter.module | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'modules') 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); -- cgit v1.2.3