From 273f640a5d9af49ab82bc5f20a4da5b1305f373f Mon Sep 17 00:00:00 2001 From: Maccabee Levine Date: Thu, 21 Dec 2023 21:57:09 +0000 Subject: [PATCH] Fix elseif --- module/VuFind/src/VuFind/Controller/CombinedController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/VuFind/src/VuFind/Controller/CombinedController.php b/module/VuFind/src/VuFind/Controller/CombinedController.php index 5c1baab7675..61dc226bc39 100644 --- a/module/VuFind/src/VuFind/Controller/CombinedController.php +++ b/module/VuFind/src/VuFind/Controller/CombinedController.php @@ -364,7 +364,7 @@ protected function adjustQueryForSettings($settings, $searchType = null) $includeRecommendNoResultsSetting = $settings['include_recommendations_noresults'] ?? false; if (is_array($includeRecommendNoResultsSetting)) { $recommendOverride['noresults'] = $settings['include_recommendations_noresults']; - } else if (!$includeRecommendNoResultsSetting) { + } elseif (!$includeRecommendNoResultsSetting) { $noRecommend[] = 'noresults'; }