- if ((IS_FORM_SENT()) && (REQUEST_POST('points') > 0)) {
- $result_main = SQL_QUERY("SELECT userid, email FROM `{!_MYSQL_PREFIX!}_user_data` WHERE `status`='CONFIRMED' ORDER BY userid",
- __FILE__, __LINE__);
- while ($content = SQL_FETCHARRAY($result_main)) {
+ if ((isFormSent()) && (postRequestElement('points') > 0)) {
+ $result_main = SQL_QUERY("SELECT userid, email FROM `{?_MYSQL_PREFIX?}_user_data` WHERE `status`='CONFIRMED' ORDER BY `userid` ASC",
+ __FILE__, __LINE__);
+ while ($content = merge_array($content, SQL_FETCHARRAY($result_main))) {