Skip to content

Commit

Permalink
redundant boolean values
Browse files Browse the repository at this point in the history
  • Loading branch information
bbannon committed Oct 17, 2024
1 parent 402a92a commit bd476d2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions users_ajax.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
}
if (empty($error)) {
save_user(
getPostValue('add') == '1' ? true : false,
getPostValue('add') === '1',
getPostValue('login'),
getPostValue('lastname'),
getPostValue('firstname'),
Expand Down Expand Up @@ -204,7 +204,7 @@
}
if (empty($error)) {
$error = save_remote_calendar(
getPostValue('add') == '1' ? true : false,
getPostValue('add') === '1',
getPostValue('login'),
getPostValue('lastname'),
getPostValue('firstname'),
Expand Down Expand Up @@ -308,7 +308,7 @@
}
if (empty($error)) {
$error = save_resource_calendar(
getPostValue('add') == '1' ? true : false,
getPostValue('add') === '1',
getPostValue('login'),
getPostValue('lastname'),
getPostValue('firstname'),
Expand Down Expand Up @@ -336,7 +336,7 @@
ajax_send_object('groups', $ret_groups, $sendPlainText);
} else if ($action == 'save-group') {
$ret = save_group(
getPostValue('add') == '1' ? true : false,
getPostValue('add') === '1',
getPostValue('id'),
getPostValue('name'),
getPostValue('users')
Expand Down

0 comments on commit bd476d2

Please sign in to comment.