diff options
author | Neil Drumm <drumm@3064.no-reply.drupal.org> | 2006-07-02 20:06:31 +0000 |
---|---|---|
committer | Neil Drumm <drumm@3064.no-reply.drupal.org> | 2006-07-02 20:06:31 +0000 |
commit | 451f44c4f0f000c1ec38aece219aa9d74e69ac39 (patch) | |
tree | 08cc15aa28f19154252e8012e70b8e11064bb810 /includes/form.inc | |
parent | ea0ccd13cc5a38a20be35035ba7d3f2d19019975 (diff) | |
download | brdo-451f44c4f0f000c1ec38aece219aa9d74e69ac39.tar.gz brdo-451f44c4f0f000c1ec38aece219aa9d74e69ac39.tar.bz2 |
#71772 by Bart Jansens, fix various php warnings
Diffstat (limited to 'includes/form.inc')
-rw-r--r-- | includes/form.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/form.inc b/includes/form.inc index 82a606664..3088e6339 100644 --- a/includes/form.inc +++ b/includes/form.inc @@ -226,13 +226,13 @@ function _form_validate($elements, $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' => 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($v)), '%name' => theme_placeholder(empty($elements['#title']) ? $elements['#parents'][0] : $elements['#title']))), WATCHDOG_ERROR); } } } 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($v)), '%name' => theme('placeholder', empty($elements['#title']) ? $elements['#parents'][0] : $elements['#title']))), WATCHDOG_ERROR); } } } |