Fix: serialize array parameters (hooks)
This commit is contained in:
parent
3770b7ffcc
commit
e536bef00e
@ -1356,6 +1356,9 @@ abstract class DolibarrModules
|
|||||||
{
|
{
|
||||||
foreach($this->module_parts as $key => $value)
|
foreach($this->module_parts as $key => $value)
|
||||||
{
|
{
|
||||||
|
// Serialize array parameters
|
||||||
|
if (is_array($value)) $value = serialize($value);
|
||||||
|
|
||||||
$sql = "INSERT INTO ".MAIN_DB_PREFIX."const (";
|
$sql = "INSERT INTO ".MAIN_DB_PREFIX."const (";
|
||||||
$sql.= "name";
|
$sql.= "name";
|
||||||
$sql.= ", type";
|
$sql.= ", type";
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user