Clean code

This commit is contained in:
Laurent Destailleur 2024-03-16 11:16:32 +01:00
parent 0e07611344
commit 2b9d5b7232
2 changed files with 4 additions and 7 deletions

View File

@ -340,10 +340,7 @@ if ($action == 'edit') {
foreach ($myTmpObjects as $myTmpObjectKey => $myTmpObjectArray) {
if ($myTmpObjectKey == 'MyObject') {
continue;
}
if ($myTmpObjectArray['includerefgeneration']) {
if (!empty($myTmpObjectArray['includerefgeneration'])) {
/*
* Orders Numbering model
*/
@ -450,7 +447,7 @@ foreach ($myTmpObjects as $myTmpObjectKey => $myTmpObjectArray) {
print "</table><br>\n";
}
if (array_key_exists('includedocgeneration', $myTmpObjectArray)) {
if (!empty($myTmpObjectArray['includedocgeneration'])) {
/*
* Document templates generators
*/

View File

@ -336,7 +336,7 @@ if (!empty($formSetup->items)) {
foreach ($myTmpObjects as $myTmpObjectKey => $myTmpObjectArray) {
if ($myTmpObjectArray['includerefgeneration']) {
if (!empty($myTmpObjectArray['includerefgeneration'])) {
/*
* Orders Numbering model
*/
@ -444,7 +444,7 @@ foreach ($myTmpObjects as $myTmpObjectKey => $myTmpObjectArray) {
print "</table><br>\n";
}
if ($myTmpObjectArray['includedocgeneration']) {
if (!empty($myTmpObjectArray['includedocgeneration'])) {
/*
* Document templates generators
*/