From 055668924bcc1fbeadecf2ff0c52430036c7e4be Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Sat, 15 Nov 2008 15:32:36 +0000 Subject: #334732 by swentel: Fix notices in form.inc visible from update.php. --- includes/form.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/form.inc b/includes/form.inc index 6da6440ba..512f4d731 100644 --- a/includes/form.inc +++ b/includes/form.inc @@ -945,7 +945,7 @@ function form_builder($form_id, $form, &$form_state) { } // If there is a file element, we need to flip a static flag so later the // form encoding can be set. - if ($form['#type'] == 'file') { + if (isset($form['#type']) && $form['#type'] == 'file') { $file = TRUE; } if (isset($form['#type']) && $form['#type'] == 'form') { -- cgit v1.2.3