I use Teams on my site, but I noticed that when I try to leave a group, it doesn't update in my account.
I'm using php8.4
I found a solution and now everything works.

in file account.php find:
if (is_valid_id($teams))
$updateset[] = "team = '$teams'";


and replace or comment with(in my case it is so):
/*if (is_valid_id($teams))
$updateset[] = "team = '$teams'";*/
 if (is_numeric($teams) && (int)$teams >= 0) {
   $teams = (int)$teams;
  $updateset[] = "team = $teams";
}






Last edited by coco on 2025-05-23 20:42:06