summaryrefslogtreecommitdiff
path: root/modules/comment.module
diff options
context:
space:
mode:
authorSteven Wittens <steven@10.no-reply.drupal.org>2004-08-13 18:17:10 +0000
committerSteven Wittens <steven@10.no-reply.drupal.org>2004-08-13 18:17:10 +0000
commitcb36ef37cc1d10c01c1bca4a9d04d0f3d00e4ae5 (patch)
treeec66a5251edc597baf4a465c67e839dd97beb4db /modules/comment.module
parenta36304af0d7a8e16a4f094e08533af35fa36b95a (diff)
downloadbrdo-cb36ef37cc1d10c01c1bca4a9d04d0f3d00e4ae5.tar.gz
brdo-cb36ef37cc1d10c01c1bca4a9d04d0f3d00e4ae5.tar.bz2
#10033: by Jonbob, make sure no filter check is done until the first preview.
Diffstat (limited to 'modules/comment.module')
-rw-r--r--modules/comment.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/comment.module b/modules/comment.module
index 740bc1131..4b1b0a640 100644
--- a/modules/comment.module
+++ b/modules/comment.module
@@ -458,7 +458,7 @@ function comment_validate_form($edit) {
/*
** Validate filter format
*/
- if (!filter_access($edit['format'])) {
+ if (array_key_exists('format', $edit) && !filter_access($edit['format'])) {
form_set_error('format', t('The supplied input format is invalid.'));
}