Skip to content

Commit

Permalink
FIX: Code syntax - refs BT#20059
Browse files Browse the repository at this point in the history
  • Loading branch information
LautaroRolon committed Jul 19, 2022
1 parent 852ca89 commit 9db9e23
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions main/admin/access_url_edit_users_to_url.php
Expand Up @@ -97,7 +97,7 @@ function remove_item(origin) {
if (count($checkList) > 0) {
$join = "INNER JOIN $tblUsergroupRelUser g ON u.user_id = g.user_id";
$where = trim($where, ',');
$where = "AND g.id IN($where)";
$where = "AND g.usergroup_id IN($where)";
}
}
}
Expand Down Expand Up @@ -174,7 +174,7 @@ function remove_item(origin) {
} else {
$order_clause = api_sort_by_first_name() ? ' ORDER BY username, firstname, lastname' : ' ORDER BY username, lastname, firstname';

$Users = UrlManager::get_url_rel_user_data(null, $order_clause, $join, $where);
$Users = UrlManager::get_url_rel_user_data(null, $order_clause);
foreach ($Users as $user) {
if ($user['access_url_id'] == $access_url_id) {
$sessionUsersList[$user['user_id']] = $user;
Expand Down Expand Up @@ -240,7 +240,7 @@ function remove_item(origin) {
<?php

if (count($allUserGroup) > 0) {
echo get_lang('ForClass').' : ';
echo get_lang('FilterByClass').' : ';
echo '<ul>';
foreach ($allUserGroup as $userGroup) {
$checked = in_array($userGroup['id'], $checkList) ? 'checked' : '';
Expand All @@ -253,7 +253,7 @@ function remove_item(origin) {

$checked = isset($_POST['no_any_class']) ? 'checked' : '';
echo '<input type="checkbox" name="no_any_class" onclick="javascript:send();" '.$checked.'> ';
echo get_lang('NoAnyClass');
echo get_lang('NotInAnyClass');
}
?>
<br /><br />
Expand Down

0 comments on commit 9db9e23

Please sign in to comment.