57
there is something wrong with the code
//notifications hack
$user_handler =& xoops_getmodulehandler('profile', 'profile');
$criteria1 = new CriteriaCompo(new Criteria('source_language', $ads->getVar('ads_lang1')));
$criteria1->add(new Criteria('target_language', $ads->getVar('ads_lang2')));
$criteria1 = new CriteriaCompo(new Criteria('source_language', $ads->getVar('ads_lang2')));
$criteria2->add(new Criteria('target_language', $ads->getVar('ads_lang1')));
$criteria = new CriteriaCompo($criteria1);
if ($vice_versa == 1) {
$criteria->add($criteria2, 'OR');
}
$users = $user_handler->getList($criteria);
unset($criteria, $criteria1, $criteria2);
$user_list = array_keys($users);
$notification_handler->triggerEvent('global', 0, 'new_ads', $tags, $user_list);
//end of hack
i believe i have problems retrieving $vice_versa. am i right?