ORDER BY
`userid` ASC', __FILE__, __LINE__);
-// Do we have entries? (we should have!)
+// Are there entries? (there should be!)
if (!SQL_HASZERONUMS($result)) {
// Load row by row
while ($row = SQL_FETCHARRAY($result)) {
// Nothing has been updated?
if (SQL_HASZEROAFFECTED()) {
// Then insert it
- SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_user_points` (`userid`,`ref_depth`,`%s`) VALUES (%s,NULL,%s)",
+ SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_user_points` (`userid`, `ref_depth`, `%s`) VALUES (%s,NULL,%s)",
array(
$column,
$row['userid'],