Update event.php

Fix bug in event.php