infos['eventtypes'])){ $eventpref=$theuser->infos['eventtypes']; }else{ $eventpref=array_keys($events); $usereventpref=array_keys($user_events); } ?>