In the events plugin on the file event_dao.php
i want to add this code to line 120
if ( OW::getUser()->isAuthorized('event')
&&
BOL_QuestionService::getInstance()->getQuestionData(array(OW::getUser()->getUserObject()->getId()),
array('erasmuscity'))==
EVENT_BOL_EventUser::getInstance()->getEventUser(array(OW::getUser()->getUserObject()->getId()),
array('eventerasmuscity')))
to make a filter compare if erasmuscity(question in profile) is the same
that eventerasmuscity( a new field i added to events plugin)
if this is true it shows the events
but the main question if i´m doing it well or not because its not working and i don´t know if this is the right code.
thanks for awnsers :)