Update event_functions.php

fix