Merge pull request #4119 from mrsof/patch-4
FIX: Warning: implode(): Invalid arguments passed
This commit is contained in:
commit
3dfed0fc31
@ -1551,6 +1551,8 @@ class ExtraFields
|
|||||||
else if (in_array($key_type,array('checkbox')))
|
else if (in_array($key_type,array('checkbox')))
|
||||||
{
|
{
|
||||||
$value_arr=GETPOST($keysuffix."options_".$key.$keyprefix);
|
$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);
|
$value_key=implode(',', $value_arr);
|
||||||
}
|
}
|
||||||
else if (in_array($key_type,array('price','double')))
|
else if (in_array($key_type,array('price','double')))
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user