1
1
Fork 0
mirror of https://code.mensbeam.com/MensBeam/Arsse.git synced 2024-12-22 21:22:40 +00:00

Filter out duplicates in set context options

This commit is contained in:
J. King 2019-02-26 12:54:27 -05:00
parent 677e33e518
commit 1e7724ec80

View file

@ -77,7 +77,7 @@ class ExclusionContext {
$spec[$a] = 0;
}
}
return array_values(array_filter($spec));
return array_values(array_unique(array_filter($spec)));
}
protected function cleanStringArray(array $spec): array {
@ -90,7 +90,7 @@ class ExclusionContext {
unset($spec[$a]);
}
}
return array_values($spec);
return array_values(array_unique($spec));
}
public function folder(int $spec = null) {