Merge pull request #34895 from JJRcop/patch-16

#34889 Fixes possible issue with set_labels
This commit is contained in:
Jordan Brown
2018-01-24 15:50:59 -05:00
committed by CitadelStationBot
parent 9652fc4127
commit 497dcd9d9e

View File

@@ -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)