A San Diego teacher who admitted to bringing a loaded gun to school will spend three years on probation.

A judge sentenced Ned Walker on Monday. The Farb Middle School teacher had faced more than five years in prison.

Instead, Walker received 90 days in custody, but that sentence is stayed if he completes probation. Walker must also do 25 days of work service and take a gun safety course.

Back in February, Walker was arrested in the school parking lot for having a .380 loaded semi-automatic handgun with a 7-round magazine, as well as a 2.5 inch locking blade knife in his car.

Walker initially pleaded not guilty to possession of a firearm on school property and possession of a knife with locking blade. He later changed his plea to guilty, and the knife charge was dropped.

Walker has been an English teacher at Farb Middle School in Tierrasanta since 2006.

