Fixed PHP Warning in models/event #282