diff --git a/includes/form.inc b/includes/form.inc index a974c61c358a7703fb1b799b069bad8e858bedc9..3320b3e6af514648a7542ab257ddbfe61e0e55d2 100644 --- a/includes/form.inc +++ b/includes/form.inc @@ -581,7 +581,7 @@ function _form_validate($elements, &$form_state, $form_id = NULL) { foreach ($value as $v) { if (!isset($options[$v])) { 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' => $v, '!name' => empty($elements['#title']) ? $elements['#parents'][0] : $elements['#title'])), WATCHDOG_ERROR); + watchdog('form', 'Illegal choice %choice in !name element.', array('%choice' => $v, '!name' => empty($elements['#title']) ? $elements['#parents'][0] : $elements['#title']), WATCHDOG_ERROR); } } }