Fix: Avoid empty arrays
This commit is contained in:
parent
08b656dc0a
commit
5c95018356
@ -1261,6 +1261,8 @@ abstract class DolibarrModules
|
||||
{
|
||||
foreach($this->module_parts as $key => $value)
|
||||
{
|
||||
if (is_array($value) && count($value) == 0) continue; // Discard empty arrays
|
||||
|
||||
$newvalue = $value;
|
||||
|
||||
// Serialize array parameters
|
||||
|
||||
Loading…
Reference in New Issue
Block a user