From bd476d27661ff76236cee90584d58ab0b4ab3e19 Mon Sep 17 00:00:00 2001 From: Bruce Bannon Date: Thu, 17 Oct 2024 07:03:19 -0600 Subject: [PATCH] redundant boolean values --- users_ajax.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/users_ajax.php b/users_ajax.php index 8d3a0d849..e38becf17 100644 --- a/users_ajax.php +++ b/users_ajax.php @@ -93,7 +93,7 @@ } if (empty($error)) { save_user( - getPostValue('add') == '1' ? true : false, + getPostValue('add') === '1', getPostValue('login'), getPostValue('lastname'), getPostValue('firstname'), @@ -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'), @@ -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'), @@ -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')