From 1dbec93dc95faafbbf1575143d6dfb6fbccdb792 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 30 Mar 2009 16:36:25 +0000 Subject: [PATCH] "fixed broken extended search in addressbook: form get's summited via ajax (without the _FILES array), which caused the process_show for 'files' to stall the the ajax request --> get's ignored now" --- etemplate/inc/class.etemplate.inc.php | 1 + 1 file changed, 1 insertion(+) diff --git a/etemplate/inc/class.etemplate.inc.php b/etemplate/inc/class.etemplate.inc.php index 0b147ab68a..b19740caea 100644 --- a/etemplate/inc/class.etemplate.inc.php +++ b/etemplate/inc/class.etemplate.inc.php @@ -2049,6 +2049,7 @@ class etemplate extends boetemplate $file = array(); foreach(array('tmp_name','type','size','name','error') as $part) { + if (!is_array($_FILES[$name])) break 2; // happens eg. in forms set via xajax, which do not upload files $file[$part] = $this->get_array($_FILES[$name],$part.$index.($multiple ? "[$i]" : '')); } if (!$multiple) $file['path'] = $this->get_array($content_in,substr($form_name,0,-1).'_path]');