- $content['subject'] = COMPILE_CODE($content['subject']);
- $content['text'] = COMPILE_CODE($content['text']);
- $content['timestamp'] = generateDateTime($content['timestamp'], '2');
- $content['category'] = getCategory($content['cat_id']);
- $content['points'] = translateComma($content['points']);
- $content['is_notify'] = translateYesNo($content['is_notify']);
- $content['sender'] = getMessage('_ADMIN_SHORT');
- $content['time'] = createFancyTime($content['time']);
- $content['uid'] = getUserId();
-
- // Get timestamp from insert
- $content['user_status'] = sprintf(getMessage('MEMBER_MAIL_BONUS_CONFIRMED_ON'),
- generateDateTime(getTimestampFromUserStats('bonusid', $content['id']), '2')
- );
+ $content['timestamp'] = generateDateTime($content['timestamp'], 2);
+ $content['userid'] = getMemberId();
+ $content['user_status'] = getMaskedMessage('MEMBER_MAIL_BONUS_CONFIRMED_UNKNOWN', $content['id']);
+
+ // Is ext-user installed?
+ if (isExtensionInstalled('user')) {
+ // Get timestamp from insert
+ $content['user_status'] = getMaskedMessage('MEMBER_MAIL_BONUS_CONFIRMED_ON',
+ generateDateTime(getTimestampFromUserStats('bonusid', $content['id']), 2)
+ );
+ } // END - if