New naming convention applied to many functions, see #118 for details
[mailer.git] / inc / reset / reset_daily.php
index 0266abc2f3cb661e9d9c63948fa51911d6dfa082..844c5182daae7e13b519d043ffef9b9d19535277 100644 (file)
@@ -58,7 +58,7 @@ if (GET_EXT_VERSION('order') >= '0.1.1') {
 }
 
 // Transfer points from locked_points to points
-$result_daily = SQL_QUERY("SELECT userid FROM `{!_MYSQL_PREFIX!}_user_data` WHERE ref_payout=0 AND `status`='CONFIRMED' ORDER BY userid", __FILE__, __LINE__);
+$result_daily = SQL_QUERY("SELECT userid FROM `{!_MYSQL_PREFIX!}_user_data` WHERE ref_payout=0 AND `status`='CONFIRMED' ORDER BY `userid` ASC", __FILE__, __LINE__);
 
 //* DEBUG: */ echo basename(__FILE__).":payout=0;daily|numRows=".SQL_NUMROWS($result_daily)."<br />\n";
 if (SQL_NUMROWS($result_daily) > 0) {