2
0
forked from Wavyzz/dolibarr

avoid php wrning

This commit is contained in:
Florian HENRY
2021-03-02 10:55:23 +01:00
parent d063533efb
commit 593ae78761

View File

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