"fix for bug #2085 - Rev. 27023 PM does no longer save custom fields"

This commit is contained in:
Ralf Becker 2009-05-19 07:31:13 +00:00
parent 317eda1be1
commit a5f7d8d4a3

View File

@ -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))
{