mirror of
https://github.com/SPLURT-Station/S.P.L.U.R.T-Station-13.git
synced 2025-12-10 09:54:52 +00:00
Merge pull request #34895 from JJRcop/patch-16
#34889 Fixes possible issue with set_labels
This commit is contained in:
committed by
CitadelStationBot
parent
9652fc4127
commit
497dcd9d9e
@@ -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