Commit 05566892 authored by webchick's avatar webchick
Browse files

#334732 by swentel: Fix notices in form.inc visible from update.php.

parent 15671f47
......@@ -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') {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment