X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Ffix_user_points.php;h=0d8dd917c26ec03b21f8b2252113f7f365fb0d0c;hb=76740e48546bb3fdb9fca65d8d205765f2bd4d68;hp=d7d16223561632ff604c5ed6eeb5c94d8ebfd629;hpb=27176d9f4c2b12e78004793986ccac61b6d925f5;p=mailer.git diff --git a/inc/fix_user_points.php b/inc/fix_user_points.php index d7d1622356..0d8dd917c2 100644 --- a/inc/fix_user_points.php +++ b/inc/fix_user_points.php @@ -70,6 +70,17 @@ if (!SQL_HASZERONUMS($result)) { $row[$column], $row['userid'] ), __FILE__, __LINE__); + + // 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)", + array( + $column, + $row['userid'], + $row[$column] + ), __FILE__, __LINE__); + } // END - if } // END - if } // END - foreach } // END - while