summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorNeil Drumm <drumm@3064.no-reply.drupal.org>2006-08-05 00:26:36 +0000
committerNeil Drumm <drumm@3064.no-reply.drupal.org>2006-08-05 00:26:36 +0000
commitcd430165d706c6a747f81e663f756e60a4a0377f (patch)
tree88915ae0fe216462d071760a005489e9838fff77 /includes
parent6839ce965fb7ac37bf735a0b169009cca7529429 (diff)
downloadbrdo-cd430165d706c6a747f81e663f756e60a4a0377f.tar.gz
brdo-cd430165d706c6a747f81e663f756e60a4a0377f.tar.bz2
#73884 by RobRoy, various code cleanup.
Diffstat (limited to 'includes')
-rw-r--r--includes/form.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/form.inc b/includes/form.inc
index 5d838002f..45df7f9fa 100644
--- a/includes/form.inc
+++ b/includes/form.inc
@@ -333,7 +333,7 @@ function _form_validate($elements, $form_id = NULL) {
}
elseif (!isset($options[$elements['#value']])) {
form_error($elements, t('An illegal choice has been detected. Please contact the site administrator.'));
- watchdog('form', t('Illegal choice %choice in %name element.', array('%choice' => theme_placeholder(check_plain($v)), '%name' => theme('placeholder', empty($elements['#title']) ? $elements['#parents'][0] : $elements['#title']))), WATCHDOG_ERROR);
+ watchdog('form', t('Illegal choice %choice in %name element.', array('%choice' => theme_placeholder(check_plain($elements['#value'])), '%name' => theme('placeholder', empty($elements['#title']) ? $elements['#parents'][0] : $elements['#title']))), WATCHDOG_ERROR);
}
}
}