Fixed misnamed variables

Page fails to reload posting new event, or updating an event with wp_debug on.  This issue fixes this.