diff options
author | Phil Davis <phil.davis@inf.org> | 2015-12-17 16:38:25 +0545 |
---|---|---|
committer | Phil Davis <phil.davis@inf.org> | 2015-12-17 16:38:25 +0545 |
commit | d61309a07ce3fd295cb4f9903b4c62245facfdd4 (patch) | |
tree | 43696d918e15be1efa49baea8323866c2077dc30 /src/usr/local/www/system_usermanager_addprivs.php | |
parent | 0cf1b4f4f29f2ad63691d598e83a9327ae9867ff (diff) | |
download | pfsense-d61309a07ce3fd295cb4f9903b4c62245facfdd4.zip pfsense-d61309a07ce3fd295cb4f9903b4c62245facfdd4.tar.gz |
Code style system_*
Diffstat (limited to 'src/usr/local/www/system_usermanager_addprivs.php')
-rw-r--r-- | src/usr/local/www/system_usermanager_addprivs.php | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/usr/local/www/system_usermanager_addprivs.php b/src/usr/local/www/system_usermanager_addprivs.php index cce0c83..61984bd 100644 --- a/src/usr/local/www/system_usermanager_addprivs.php +++ b/src/usr/local/www/system_usermanager_addprivs.php @@ -141,9 +141,10 @@ function build_priv_list() { $list = array(); - foreach($spriv_list as $pname => $pdata) { - if (in_array($pname, $a_user['priv'])) + foreach ($spriv_list as $pname => $pdata) { + if (in_array($pname, $a_user['priv'])) { continue; + } $list[$pname] = $pdata['name']; } @@ -158,11 +159,13 @@ if (isAjax()) { include("head.inc"); -if ($input_errors) +if ($input_errors) { print_input_errors($input_errors); +} -if ($savemsg) +if ($savemsg) { print_info_box($savemsg, 'success'); +} $tab_array = array(); $tab_array[] = array(gettext("Users"), true, "system_usermanager.php"); @@ -201,7 +204,7 @@ print($form); <script type="text/javascript"> //<![CDATA[ -events.push(function(){ +events.push(function() { <?php |