Merge pull request #4119 from mrsof/patch-4

FIX: Warning: implode(): Invalid arguments passed
This commit is contained in:
Laurent Destailleur 2015-11-30 18:54:04 +01:00
commit 3dfed0fc31

View File

@ -1551,6 +1551,8 @@ class ExtraFields
else if (in_array($key_type,array('checkbox')))
{
$value_arr=GETPOST($keysuffix."options_".$key.$keyprefix);
// Make sure we get an array even if there's only one checkbox
$value_arr=(array)$value_arr
$value_key=implode(',', $value_arr);
}
else if (in_array($key_type,array('price','double')))