From 74b98920de1e55966e355ad84d280d55d71cfc9a Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 24 Jun 2014 07:47:43 +0000 Subject: [PATCH] fixed lost type2 values in cf migration eg. InfoLog type cf is valid for --- phpgwapi/setup/tables_update.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpgwapi/setup/tables_update.inc.php b/phpgwapi/setup/tables_update.inc.php index cbbc7ea4b4..1cfcc4eee5 100644 --- a/phpgwapi/setup/tables_update.inc.php +++ b/phpgwapi/setup/tables_update.inc.php @@ -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;