Update modulebuilder.lib.php

This commit is contained in:
Laurent Destailleur
2022-04-05 17:51:42 +02:00
committed by GitHub
parent b45aeda14d
commit 89eb19bafb

View File

@@ -128,7 +128,7 @@ function rebuildObjectClass($destdir, $module, $objectname, $newmask, $readdir =
if (!empty($val['noteditable'])) {
$texttoinsert .= " 'noteditable'=>'".$val['noteditable']."',";
}
if (!empty($val['default']) || (!empty($val['default']) && $val['default'] === '0')) {
if (!empty($val['default']) || (isset($val['default']) && $val['default'] === '0')) {
$texttoinsert .= " 'default'=>'".$val['default']."',";
}
if (!empty($val['index'])) {