Skip to content

Commit

Permalink
Fix: Avoid empty arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed May 1, 2013
1 parent 08b656d commit 5c95018
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions htdocs/core/modules/DolibarrModules.class.php
Expand Up @@ -1261,6 +1261,8 @@ function insert_module_parts()
{
foreach($this->module_parts as $key => $value)
{
if (is_array($value) && count($value) == 0) continue; // Discard empty arrays

$newvalue = $value;

// Serialize array parameters
Expand Down

0 comments on commit 5c95018

Please sign in to comment.