diff --git a/htdocs/user/list.php b/htdocs/user/list.php index 6e78a1a7903..b6e5cba5652 100644 --- a/htdocs/user/list.php +++ b/htdocs/user/list.php @@ -571,7 +571,7 @@ print ''; $url = DOL_URL_ROOT.'/user/card.php?action=create'.($mode == 'employee' ? '&employee=1' : '').'&leftmenu='; if (!empty($socid)) { - $url .= '&socid='.$socid; + $url .= '&socid='.urlencode($socid); } $newcardbutton = dolGetButtonTitle($langs->trans('NewUser'), '', 'fa fa-plus-circle', $url, '', $permissiontoadd); @@ -942,9 +942,8 @@ while ($i < ($limit ? min($num, $limit) : $num)) { $totalarray['nbfield']++; } } - if (empty($obj->socid)) $obj->socid = 0; if (!empty($arrayfields['u.email']['checked'])) { - print '