mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Clean code
This commit is contained in:
parent
0e07611344
commit
2b9d5b7232
|
|
@ -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
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -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
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user