diff options
author | Dominique Martinet <asmadeus@codewreck.org> | 2021-05-29 02:11:21 +0200 |
---|---|---|
committer | Dominique Martinet <asmadeus@codewreck.org> | 2021-05-29 02:13:19 +0200 |
commit | c157917fc55f82b54e3e68b327e4e887b46f358b (patch) | |
tree | e282bd6d41c78f41b6a092e422331f386f93fea2 /admin | |
parent | ac891d3d968d9200a7ef55f1ccab7b3caeac73e7 (diff) |
fix dkp update when race/class/etc didn't get found correctly
Diffstat (limited to 'admin')
-rw-r--r-- | admin/addraid.php | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/admin/addraid.php b/admin/addraid.php index eae9108..5f90ce1 100644 --- a/admin/addraid.php +++ b/admin/addraid.php @@ -888,14 +888,7 @@ class Add_Raid extends EQdkp_Admin // Process the update
$sql = 'UPDATE ' . MEMBERS_TABLE . ' m, ' . CLASS_TABLE . ' c, ' . RACE_TABLE . ' r
- SET m.member_earned = m.member_earned + ' . $raid_value . ',';
-
- // Do not update their lastraid if it's greater than this raid's date [ #749201 ]
- if ( $row['member_lastraid'] < $this->time )
- {
- $sql .= "m.member_lastraid = '" . $this->time . "',";
- }
-
+ SET ';
$sql .= ' m.member_raidcount = m.member_raidcount + 1,
m.member_level = ' . $member_level . ',
m.member_race_id = r.race_id,
@@ -905,11 +898,9 @@ class Add_Raid extends EQdkp_Admin AND m.member_name = "' . $member_name . '"';
$db->query($sql);
}
- // If they didn't, their update is lumped into $update_sql (below)
- else
- {
- $update_sql_members[] = $member_name;
- }
+
+ // And mark member for bunch update later
+ $update_sql_members[] = $member_name;
}
$db->free_result($result);
session_destroy();
|