Continuity mistake: While Lisa is standing in front of the table with her friends in the cafeteria, we see that the trays appear during the first shot, then after the camera zooms in on Lisa's table, the trays disappear. Then during the third shot, Lisa calls Alex over to her table. Look at the table again: the trays have reappeared. (00:06:00)
Continuity mistake: After Lisa wakes from her daydream, there's a boy behind her with blonde hair and a light purple shirt. After Ms. Hoover says "Then come back and finish the test", the boy's hair turns blue, and after it zooms in on Lisa's face, there's a boy with brown hair and a blue shirt behind her.
Continuity mistake: While in the cafeteria, Principal Skinner asks Milhouse to lower his eyebrows. Behind him, there is a bulletin board that changes from brown to purple.
Answer: I'm not sure if this is the one you're thinking of, but an episode of "Ray Bradbury Theatre," called "A Sound of Thunder," dealt with a similar matter: a group of hunters travel back in time to hunt dinosaurs, only to find things have changed when they get back because someone stepped on a butterfly.
Xofer