Update events.php

Fix PHP notices