From b79ff8d4eda3b0b0e941c6a074c4a8642504e30e Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Wed, 30 Apr 2014 16:52:34 +0000 Subject: [PATCH] Avoid warning if value is not an array --- importexport/inc/class.importexport_widget_filter.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/importexport/inc/class.importexport_widget_filter.inc.php b/importexport/inc/class.importexport_widget_filter.inc.php index 46f725567c..6ed48df554 100644 --- a/importexport/inc/class.importexport_widget_filter.inc.php +++ b/importexport/inc/class.importexport_widget_filter.inc.php @@ -229,7 +229,7 @@ error_log('Trying to filter with unsupported field type: ' . $field['type']); $form_name = self::form_name($cname, $this->id, $expand); if (!$this->is_readonly($cname, $form_name)) { - $value_in = self::get_array($content, $form_name); + $value_in = (array)self::get_array($content, $form_name); $valid =& self::get_array($validated, $this->id ? $form_name : $field, true); foreach($value_in as $key => $value)