Update event.php

issue #594 related