Update extrafields.class.php

This commit is contained in:
Sof 2015-11-30 18:06:15 +01:00
parent 5dab92836b
commit 09b61fd185

View File

@ -1551,7 +1551,9 @@ class ExtraFields
else if (in_array($key_type,array('checkbox')))
{
$value_arr=GETPOST($keysuffix."options_".$key.$keyprefix);
$value_key=implode(',', (array)$value_arr);
// 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')))
{