The cast of "Glee" apologized to Lindsay Lohan for mocking her during an episode last year ... TMZ has learned.
Lindsay was out at dinner in West Hollywood Sunday night when she ran into the cast (minus Jane Lynch and Lea Michele) ... and naturally, that episode -- mocking Lindsay's frequent trips to rehab -- came up .
Sources tell us the cast walked up to LiLo ... apologized for the jokes ... and said they didn't mean to hurt her feelings. Lindsay accepted their apology and everyone parted ways.
Don't expect the same thing to happen if Lindsay bumps into Jay Leno. Or David Letterman. Or Jon Stewart. Or Jimmy Kimmel. Or ...