mirror of
https://github.com/Znote/ZnoteAAC.git
synced 2025-04-30 11:19:22 +02:00
Fix bug in deleting characters from myaccount.php
The bug was that if you had multiple characters pending for deletion for different dates this query would set all pending characters as done even if they weren't deleted and they would therefore be prevented from being deleted or cancelled.
This commit is contained in:
parent
40a23dd18b
commit
74f8c0bbfa
@ -229,7 +229,7 @@ if ($render_page) {
|
|||||||
echo '<b>CAUTION!</b> Your character with name <b>' . $delete['character_name'] . ' will be deleted on ' . $delete['time'] . '</b>. <a href="myaccount.php?cancel_delete_id=' . $delete['id'] . '">Cancel this operation.</a><br/>';
|
echo '<b>CAUTION!</b> Your character with name <b>' . $delete['character_name'] . ' will be deleted on ' . $delete['time'] . '</b>. <a href="myaccount.php?cancel_delete_id=' . $delete['id'] . '">Cancel this operation.</a><br/>';
|
||||||
else {
|
else {
|
||||||
user_delete_character(user_character_id($delete['character_name']));
|
user_delete_character(user_character_id($delete['character_name']));
|
||||||
mysql_update('UPDATE `znote_deleted_characters` SET `done` = 1');
|
mysql_update('UPDATE `znote_deleted_characters` SET `done` = 1 WHERE `character_name` = \''. $delete['character_name']. '\'');
|
||||||
echo '<b>Character ' . $delete['character_name'] . ' has been deleted</b>. This operation was requested by owner of this account.';
|
echo '<b>Character ' . $delete['character_name'] . ' has been deleted</b>. This operation was requested by owner of this account.';
|
||||||
$char_count--;
|
$char_count--;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user