Fixing style errors.
This commit is contained in:
parent
35b29481c7
commit
85adefe721
@ -1477,8 +1477,8 @@ if (!$error && ($massaction == 'enable' || ($action == 'enable' && $confirm == '
|
|||||||
$nbok = 0;
|
$nbok = 0;
|
||||||
foreach ($toselect as $toselectid) {
|
foreach ($toselect as $toselectid) {
|
||||||
$result = $objecttmp->fetch($toselectid);
|
$result = $objecttmp->fetch($toselectid);
|
||||||
if($result>0){
|
if ($result>0) {
|
||||||
if (in_array($objecttmp->element,array('societe'))) {
|
if (in_array($objecttmp->element, array('societe'))) {
|
||||||
$result =$objecttmp->setStatut(1);
|
$result =$objecttmp->setStatut(1);
|
||||||
}
|
}
|
||||||
if ($result <= 0) {
|
if ($result <= 0) {
|
||||||
@ -1488,7 +1488,7 @@ if (!$error && ($massaction == 'enable' || ($action == 'enable' && $confirm == '
|
|||||||
} else {
|
} else {
|
||||||
$nbok++;
|
$nbok++;
|
||||||
}
|
}
|
||||||
}else {
|
} else {
|
||||||
setEventMessages($objecttmp->error, $objecttmp->errors, 'errors');
|
setEventMessages($objecttmp->error, $objecttmp->errors, 'errors');
|
||||||
$error++;
|
$error++;
|
||||||
break;
|
break;
|
||||||
@ -1514,8 +1514,8 @@ if (!$error && ($massaction == 'disable' || ($action == 'disable' && $confirm ==
|
|||||||
$nbok = 0;
|
$nbok = 0;
|
||||||
foreach ($toselect as $toselectid) {
|
foreach ($toselect as $toselectid) {
|
||||||
$result = $objecttmp->fetch($toselectid);
|
$result = $objecttmp->fetch($toselectid);
|
||||||
if($result>0){
|
if ($result>0) {
|
||||||
if (in_array($objecttmp->element,array('societe'))) {
|
if (in_array($objecttmp->element, array('societe'))) {
|
||||||
$result =$objecttmp->setStatut(0);
|
$result =$objecttmp->setStatut(0);
|
||||||
}
|
}
|
||||||
if ($result <= 0) {
|
if ($result <= 0) {
|
||||||
@ -1525,7 +1525,7 @@ if (!$error && ($massaction == 'disable' || ($action == 'disable' && $confirm ==
|
|||||||
} else {
|
} else {
|
||||||
$nbok++;
|
$nbok++;
|
||||||
}
|
}
|
||||||
}else {
|
} else {
|
||||||
setEventMessages($objecttmp->error, $objecttmp->errors, 'errors');
|
setEventMessages($objecttmp->error, $objecttmp->errors, 'errors');
|
||||||
$error++;
|
$error++;
|
||||||
break;
|
break;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user