From 4f618ac2a556c664915c22353ececc62ba8ec93e Mon Sep 17 00:00:00 2001 From: jjrom Date: Wed, 9 Mar 2022 08:39:24 +0100 Subject: [PATCH] Boolean flag error in limitToContinents ! --- app/include/iTag/Taggers/PoliticalTagger.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/include/iTag/Taggers/PoliticalTagger.php b/app/include/iTag/Taggers/PoliticalTagger.php index 04c6993..c5b0455 100644 --- a/app/include/iTag/Taggers/PoliticalTagger.php +++ b/app/include/iTag/Taggers/PoliticalTagger.php @@ -278,7 +278,7 @@ private function addCountriesToContinents(&$continents, $element, $limitToContin } // Skip countries - if ( $limitToContinents ) { + if ( !$limitToContinents ) { $area = $this->toSquareKm($element['area']); $pcover = $this->percentage($area, $this->area); if ($pcover > 0) {