fixed lost type2 values in cf migration eg. InfoLog type cf is valid for

This commit is contained in:
Ralf Becker 2014-06-24 07:47:43 +00:00
parent af9b8303d6
commit 74b98920de

View File

@ -538,7 +538,7 @@ function phpgwapi_upgrade1_9_020()
{
case 'private':
case 'type2':
$val = $val ? implode(',', $val) : null;
$val = $val ? (is_array($val) ? implode(',', $val) : $val) : null;
break;
case 'values':
$val = $val && is_array($val) ? json_encode($val) : null;