- SQL_FREERESULT($result);
-
- if ($notify == 'Y') {
- // Transfer all neccessary data to the global $DATA array
- $DATA['start'] = generateDateTime($start, '2');
- $DATA['end'] = generateDateTime($end , '2');
- $DATA['now_t'] = generateDateTime(time(), '2');
- $DATA['title'] = $title;
- $DATA['id'] = $id; // ID for the rallye details link
- $DATA['ref'] = 0;
- $DATA['refs'] = GET_TOTAL_DATA($uid, 'user_data', 'userid', "refid", true);
-
- // Load prices
- $prices = RALLYE_ADD_PRICES($id);
-
- // Determine min_users/prices tring
- $DATA['min_users'] = RALLYE_DETERMINE_MIN_USERS($min_users);
- $DATA['min_prices'] = RALLYE_DETERMINE_MIN_PRICES($min_prices);
-
- // Send notification to member
- $message = LOAD_EMAIL_TEMPLATE("member_rallye_notify", array('prices' => $prices), $uid);
- sendEmail($uid, sprintf(getMessage('RALLYE_MEMBER_NOTIFY'), $title), $message);
- } // END - if