Change code lines help | Forum

Darren Aug 3 '12
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 :)
getQuestionData will return an array and you need to parse that to compare.
Darren Aug 6 '12

Quote from Purusothaman Ramanujam getQuestionData will return an array and you need to parse that to compare.

so what i´m doing its correct or not?
Team
Den Aug 24 '12
Topic was moved from General Chat.