Fix notice: Notice: Undefined index: in plugins/Events/Events.php on line 92