From 1e8870eb95fe295c9d53e21cba93c2e924ecdf9c Mon Sep 17 00:00:00 2001 From: stickler-ci Date: Thu, 9 Sep 2021 09:30:29 +0000 Subject: [PATCH] Fixing style errors. --- htdocs/core/actions_massactions.inc.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/htdocs/core/actions_massactions.inc.php b/htdocs/core/actions_massactions.inc.php index 8ca41166759..be7528b2a4e 100644 --- a/htdocs/core/actions_massactions.inc.php +++ b/htdocs/core/actions_massactions.inc.php @@ -1315,7 +1315,7 @@ if (!$error && ($massaction == 'delete' || ($action == 'delete' && $confirm == ' $result = $objecttmp->delete($user); } - if(empty($result)) { // if delete returns 0, there is at least one object linked + if (empty($result)) { // if delete returns 0, there is at least one object linked $TMsg = array_merge($objecttmp->errors, $TMsg); } elseif ($result < 0) { // if delete returns is < 0, there is an error, we break and rollback later setEventMessages($objecttmp->error, $objecttmp->errors, 'errors'); @@ -1346,7 +1346,6 @@ if (!$error && ($massaction == 'delete' || ($action == 'delete' && $confirm == ' } $db->commit(); - } else { $db->rollback(); }