mirror of
https://github.com/evilew/GS13-Citadel.git
synced 2026-08-25 22:29:02 +01:00
Merge pull request #5083 from Citadel-Station-13/upstream-merge-34895
[MIRROR] #34889 Fixes possible issue with set_labels
This commit is contained in:
@@ -179,7 +179,9 @@ function set_labels($payload, $labels, $remove) {
|
||||
|
||||
$tags = array_merge($labels, $existing);
|
||||
$tags = array_unique($tags);
|
||||
$tags = array_diff($tags, $remove);
|
||||
if($remove) {
|
||||
$tags = array_diff($tags, $remove);
|
||||
}
|
||||
|
||||
$final = array();
|
||||
foreach($tags as $t)
|
||||
|
||||
Reference in New Issue
Block a user