From 1e7724ec80f6d435a768b8ebb509dbe8f46c1d03 Mon Sep 17 00:00:00 2001 From: "J. King" Date: Tue, 26 Feb 2019 12:54:27 -0500 Subject: [PATCH] Filter out duplicates in set context options --- lib/Context/ExclusionContext.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Context/ExclusionContext.php b/lib/Context/ExclusionContext.php index 9fc2381b..d5299fe0 100644 --- a/lib/Context/ExclusionContext.php +++ b/lib/Context/ExclusionContext.php @@ -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) {