mirror of
https://code.mensbeam.com/MensBeam/Arsse.git
synced 2024-12-23 05:54:55 +00:00
Filter out duplicates in set context options
This commit is contained in:
parent
677e33e518
commit
1e7724ec80
1 changed files with 2 additions and 2 deletions
|
@ -77,7 +77,7 @@ class ExclusionContext {
|
||||||
$spec[$a] = 0;
|
$spec[$a] = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return array_values(array_filter($spec));
|
return array_values(array_unique(array_filter($spec)));
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function cleanStringArray(array $spec): array {
|
protected function cleanStringArray(array $spec): array {
|
||||||
|
@ -90,7 +90,7 @@ class ExclusionContext {
|
||||||
unset($spec[$a]);
|
unset($spec[$a]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return array_values($spec);
|
return array_values(array_unique($spec));
|
||||||
}
|
}
|
||||||
|
|
||||||
public function folder(int $spec = null) {
|
public function folder(int $spec = null) {
|
||||||
|
|
Loading…
Reference in a new issue