Merge pull request #16531 from FHenry/12.0

avoid warning into modulebuilder
This commit is contained in:
Laurent Destailleur 2021-03-04 16:52:47 +01:00 committed by GitHub
commit eda0b4dc37
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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']))
{