It works only once, this works fine ->
REPLACE
if ((!check_admin_date($end_date) && $end_date != 0) || $end_date == "") {
$end_date = 0;
}
WITH
if (!check_admin_date($end_date)) {
$time = time() + 60 * 60 * 24 * 1;
$end_date = date("Y-m-d H:i:s", $time);
}
REPLACE
if (isset($usergroup_match_array[$key]['groupmatch_enddate'])) {
$end_date = ($usergroup_match_array[$key]['groupmatch_enddate'] != 0) ? date("Y-m-d H:i:s", $usergroup_match_array[$key]['groupmatch_enddate']) : $usergroup_match_array[$key]['groupmatch_enddate'];
}
else {
$end_date = 0;
}
show_usergroup_row($key, $val, $start_date, $end_date);
}
}
WITH
if (isset($usergroup_match_array[$key]['groupmatch_enddate'])) {
$time = time() + 60 * 60 * 24 * 1;
$end_date = date("Y-m-d H:i:s", $time);
}
Thanks Jan for the hint, aobut the time code