In a statement on Cwmcarn High School's website, headteacher Jacqui Peplinski said "concerns were dealt with swiftly".
"There was no risk to any staff or learner and the relevant support services were contacted as a precautionary measure."
"Cwmcarn High is a caring and safe environment and we are committed to everyone’s safety."
More top news
Cold with frost and fog inland,a little milder but breezy around the coasts!
UKIP's candidate in the Rhondda quits party claiming it's turned its back on the people it claims to represent
It follows an online campaign to give Iestyn Baldwin, from Bridgend "the best birthday ever".