From 141a3017c53edfd699517ad706b50446c218d66d Mon Sep 17 00:00:00 2001 From: Viktor Pedersen <viktor@dsv.su.se> Date: Wed, 8 Sep 2021 10:37:03 +0200 Subject: [PATCH] fixed typo --- include/SearchPage.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/include/SearchPage.php b/include/SearchPage.php index b823aef..f7761c9 100644 --- a/include/SearchPage.php +++ b/include/SearchPage.php @@ -103,7 +103,9 @@ class SearchPage extends Page { $sanitizedItems = array(); foreach($items as $item) { $mustMatch = $item->matches($mustMatchArray); - + if($mustMatch) { + $sanitizedItems[] = array($item, $mustMatch); + } // $mustMatchCheck = array(); // foreach($mustMatchArray as $mustMatchTerm) { @@ -118,10 +120,8 @@ class SearchPage extends Page { // if(in_array(False, $mustMatchCheck, True) === False) { // $sanitizedItems[] = array($item, $mustMatch); // } + - if($mustMatch) { - $sanitizedItems[] = array($item, $mustMatch); - } // $mustExcludeCheck = array(); // foreach($mustExcludeArray as $mustExcludeTerm) { @@ -150,7 +150,7 @@ class SearchPage extends Page { foreach($sanitizedItems as $sanitizedItem) { print('DEBUG $sanitizedItem: '); - var_dump($sanitizedItem; + var_dump($sanitizedItem); print('<br><br>'); }