Skip to content

Commit

Permalink
Fix: serialize array parameters (hooks)
Browse files Browse the repository at this point in the history
  • Loading branch information
hregis committed Feb 23, 2012
1 parent 3770b7f commit e536bef
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions htdocs/core/modules/DolibarrModules.class.php
Expand Up @@ -1356,6 +1356,9 @@ function insert_module_parts()
{
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.= "name";
$sql.= ", type";
Expand Down

0 comments on commit e536bef

Please sign in to comment.