From a5f7d8d4a31d693035e571d0ad600e7bf2b56001 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 19 May 2009 07:31:13 +0000 Subject: [PATCH] "fix for bug #2085 - Rev. 27023 PM does no longer save custom fields" --- etemplate/inc/class.so_sql_cf.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etemplate/inc/class.so_sql_cf.inc.php b/etemplate/inc/class.so_sql_cf.inc.php index 21fb16f2e1..79ceda4d12 100644 --- a/etemplate/inc/class.so_sql_cf.inc.php +++ b/etemplate/inc/class.so_sql_cf.inc.php @@ -213,7 +213,7 @@ class so_sql_cf extends so_sql $this->db->delete($this->extra_table,$where,__LINE__,__FILE__,$this->app); // just delete them, in case they were previously set if (!$is_multiple) continue; } - foreach($is_multiple && !is_array($data[$field]) ? explode(',',$data[$field]) : $data['field'] as $value) + foreach($is_multiple && !is_array($data[$field]) ? explode(',',$data[$field]) : (array)$data[$field] as $value) { if (!$this->db->insert($this->extra_table,array($this->extra_value => $value),$where,__LINE__,__FILE__,$this->app)) {