"make storing of cf's aware of arrays

Thanks to Hans-Jürgen Tappe"
This commit is contained in:
Ralf Becker 2009-09-27 08:00:59 +00:00
parent 3d2a5c153a
commit a83881d03a

View File

@ -611,10 +611,10 @@ ORDER BY cal_user_type, cal_usre_id
{
if ($name[0] == '#')
{
if (strlen($value))
if ($value)
{
$this->db->insert($this->extra_table,array(
'cal_extra_value' => $value,
'cal_extra_value' => is_array($value) ? implode(',',$value) : $value,
),array(
'cal_id' => $cal_id,
'cal_extra_name' => substr($name,1),