summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2008-11-15 15:32:36 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2008-11-15 15:32:36 +0000
commit055668924bcc1fbeadecf2ff0c52430036c7e4be (patch)
tree57a2a6a0f2429531388948e8f7c0a50b669ad255 /includes
parent15671f471b5097fd20c5951a9c835de9bb05fc5b (diff)
downloadbrdo-055668924bcc1fbeadecf2ff0c52430036c7e4be.tar.gz
brdo-055668924bcc1fbeadecf2ff0c52430036c7e4be.tar.bz2
#334732 by swentel: Fix notices in form.inc visible from update.php.
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 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') {