mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-11 18:22:14 +00:00
$remove is optional in 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