Skip to content

Commit

Permalink
GH-224 Move actual unsetting of ignore entries to the effect
Browse files Browse the repository at this point in the history
  • Loading branch information
mdziekon committed Jun 14, 2022
1 parent 3ac4e2f commit 8510c0d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -811,7 +811,6 @@
foreach ($entriesToDelete as $ThisID) {
if (!empty($_User['IgnoredUsers'][$ThisID])) {
$IgnoreSystem_Deleted[] = $ThisID;
unset($_User['IgnoredUsers'][$ThisID]);
}
}

Expand All @@ -821,6 +820,10 @@
'entriesIds' => $IgnoreSystem_Deleted,
]);

foreach ($IgnoreSystem_Deleted as $entryId) {
unset($_User['IgnoredUsers'][$entryId]);
}

$IgnoreSystem_Deleted_Count = count($IgnoreSystem_Deleted);

$InfoMsgs[] = sprintf($_Lang['Ignore_DeletedXUsers'], $IgnoreSystem_Deleted_Count);
Expand Down

0 comments on commit 8510c0d

Please sign in to comment.