Update events.php

Fix PHP notices
Merge pull request #18 from mbeall/master

PHP Notice fix