From f1fc5e1a8db4001d55a1282c7ac8722a3fa590e0 Mon Sep 17 00:00:00 2001 From: Bjorn Hijmans Date: Sat, 20 Jun 2020 12:35:50 +0200 Subject: [PATCH] Fix for onlyCategories options broken #135 --- services/scanners/ScannerFile.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/scanners/ScannerFile.php b/services/scanners/ScannerFile.php index 535d410..083657e 100644 --- a/services/scanners/ScannerFile.php +++ b/services/scanners/ScannerFile.php @@ -270,7 +270,7 @@ private function _getRoots() protected function isValidCategory($category) { if ($this->module->onlyCategories) { - return in_array($category, $this->module->ignoredCategories); + return in_array($category, $this->module->onlyCategories); } if ($this->module->ignoredCategories) {