- array(bigintval($id)), __FILE__, __LINE__);
- $type = "mailid"; $DATA = $id; $PROBLEM = NORMAL_MAIL_PROBLEM;
- break;
-
- case "BONUS":
- $result_data = SQL_QUERY_ESC("SELECT subject, timestamp, cat_id, points, 0 FROM `{!_MYSQL_PREFIX!}_bonus` WHERE id=%s LIMIT 1",
- array(bigintval($id2)), __FILE__, __LINE__);
- $type = "bonusid"; $DATA = $id2; $PROBLEM = BONUS_MAIL_PROBLEM;
- break;
-
- default: // Unknown type detected!
- DEBUG_LOG(__FILE__, __LINE__, sprintf("Unknown mail type %s detected.", $type));
- break;
+ array(bigintval($id)), __FILE__, __LINE__);
+ $type = 'mailid';
+ $DATA = $id;
+ $PROBLEM = getMessage('NORMAL_MAIL_PROBLEM');
+ break;
+
+ case 'BONUS':
+ $result_data = SQL_QUERY_ESC("SELECT subject, timestamp, cat_id, points, 0 FROM `{?_MYSQL_PREFIX?}_bonus` WHERE `id`=%s LIMIT 1",
+ array(bigintval($id2)), __FILE__, __LINE__);
+ $type = 'bonusid';
+ $DATA = $id2;
+ $PROBLEM = getMessage('BONUS_MAIL_PROBLEM');
+ break;
+
+ default: // Unknown type detected!
+ logDebugMessage(__FILE__, __LINE__, sprintf("Unknown mail type %s detected.", $type));
+ break;