avoid warning into modulebuilder

This commit is contained in:
Florian HENRY
2021-03-04 10:28:41 +01:00
parent 0c73cdb129
commit bf775855f6

View File

@@ -51,7 +51,7 @@ function rebuildObjectClass($destdir, $module, $objectname, $newmask, $readdir =
}
// Check parameters
if (count($addfieldentry) > 0)
if (is_array($addfieldentry) && count($addfieldentry) > 0)
{
if (empty($addfieldentry['name']))
{