@ -454,23 +468,23 @@ function modify_filter($user_id,$url_params,$row)
* @param string $url_params
* @return string Some HTML-code with the lock/unlock button
*/
function active_filter($active, $url_params, $row)
{
function active_filter($active, $url_params, $row) {
global $_user;
if ($active=='1')
{
if ($active=='1') {
$action='lock';
$image='right';
}
if ($active=='0')
{
} elseif ($active=='-1') {
$action='edit';
$image='expired';
} elseif ($active=='0') {
$action='unlock';
$image='wrong';
}
if ($row['0']<>$_user['user_id']) // you cannot lock yourself out otherwise you could disable all the accounts including your own => everybody is locked out and nobody can change it anymore.
}elseif ($row['0']<>$_user['user_id']) { // you cannot lock yourself out otherwise you could disable all the accounts including your own => everybody is locked out and nobody can change it anymore.