2
0
forked from Wavyzz/dolibarr

Fix : php 8.1 warnings

This commit is contained in:
hystepik
2022-11-27 00:44:05 +01:00
parent fb11f24fae
commit c1b355fcac
8 changed files with 158 additions and 155 deletions

View File

@@ -356,7 +356,7 @@ function rebuildObjectSql($destdir, $module, $objectname, $newmask, $readdir = '
}
}
}
$texttoinsert .= (($val['notnull'] > 0) ? ' NOT NULL' : '');
$texttoinsert .= ((!empty($val['notnull']) && $val['notnull'] > 0) ? ' NOT NULL' : '');
if ($i < count($object->fields)) {
$texttoinsert .= ", ";
}