summaryrefslogtreecommitdiff
path: root/lib/plugins
diff options
context:
space:
mode:
authorChristopher Smith <chris@jalakai.co.uk>2014-02-15 21:00:08 +0000
committerChristopher Smith <chris@jalakai.co.uk>2014-02-15 21:00:08 +0000
commit40d72af6467f899f09d3b282922f861482e8228f (patch)
treedebe227447e048636e0ee880d227cbaf1c70b4ee /lib/plugins
parent6ed3476b11fe6e9c4625fb28e8953ac26e8160fb (diff)
downloadrpg-40d72af6467f899f09d3b282922f861482e8228f.tar.gz
rpg-40d72af6467f899f09d3b282922f861482e8228f.tar.bz2
add braces and indentation per coding standards
Diffstat (limited to 'lib/plugins')
-rw-r--r--lib/plugins/usermanager/admin.php17
1 files changed, 9 insertions, 8 deletions
diff --git a/lib/plugins/usermanager/admin.php b/lib/plugins/usermanager/admin.php
index b9199e586..4b94440b0 100644
--- a/lib/plugins/usermanager/admin.php
+++ b/lib/plugins/usermanager/admin.php
@@ -631,14 +631,15 @@ class admin_plugin_usermanager extends DokuWiki_Admin_Plugin {
$newpass = auth_pwgen($olduser);
}
- if (!empty($newpass) && $this->_auth->canDo('modPass'))
- $changes['pass'] = $newpass;
- if (!empty($newname) && $this->_auth->canDo('modName') && $newname != $oldinfo['name'])
- $changes['name'] = $newname;
- if (!empty($newmail) && $this->_auth->canDo('modMail') && $newmail != $oldinfo['mail'])
- $changes['mail'] = $newmail;
- if (!empty($newgrps) && $this->_auth->canDo('modGroups') && $newgrps != $oldinfo['grps'])
- $changes['grps'] = $newgrps;
+ if (!empty($newname) && $this->_auth->canDo('modName') && $newname != $oldinfo['name']) {
+ $changes['name'] = $newname;
+ }
+ if (!empty($newmail) && $this->_auth->canDo('modMail') && $newmail != $oldinfo['mail']) {
+ $changes['mail'] = $newmail;
+ }
+ if (!empty($newgrps) && $this->_auth->canDo('modGroups') && $newgrps != $oldinfo['grps']) {
+ $changes['grps'] = $newgrps;
+ }
if ($ok = $this->_auth->triggerUserMod('modify', array($olduser, $changes))) {
msg($this->lang['update_ok'],1);