From 14450d8b79ef9edbe7f304f17fa1fea8ae058ac4 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 22 Nov 2019 15:21:21 +0100 Subject: [PATCH] psr --- htdocs/user/group/perms.php | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/htdocs/user/group/perms.php b/htdocs/user/group/perms.php index 16aa16765a9..39dc2e61f9f 100644 --- a/htdocs/user/group/perms.php +++ b/htdocs/user/group/perms.php @@ -71,24 +71,19 @@ $parameters = array(); $reshook = $hookmanager->executeHooks('doActions', $parameters, $object, $action); // Note that $action and $object may have been modified by some hooks if ($reshook < 0) setEventMessages($hookmanager->error, $hookmanager->errors, 'errors'); -if (empty($reshook)) -{ - if ($action == 'addrights' && $caneditperms) - { +if (empty($reshook)) { + if ($action == 'addrights' && $caneditperms) { $editgroup = new Usergroup($db); $result = $editgroup->fetch($id); - if ($result > 0) - { + if ($result > 0) { $editgroup->addrights($rights, $module, '', $entity); } } - if ($action == 'delrights' && $caneditperms) - { + if ($action == 'delrights' && $caneditperms) { $editgroup = new Usergroup($db); $result = $editgroup->fetch($id); - if ($result > 0) - { + if ($result > 0) { $editgroup->delrights($rights, $module, '', $entity); } }