"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:01:42 +00:00
parent 85fc25cefc
commit 5318ca1084

View File

@ -598,10 +598,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),