From 96763dd26dab9eb5fbfd478c2d7f2145d06452c7 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Sun, 14 Jul 2013 23:11:25 +0200 Subject: [PATCH] Fixed search (only variables may be passed by reference) --- .../install/files/lib/system/search/SearchEngine.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/system/search/SearchEngine.class.php b/wcfsetup/install/files/lib/system/search/SearchEngine.class.php index bfe6d9c9a4..1ac8d78801 100644 --- a/wcfsetup/install/files/lib/system/search/SearchEngine.class.php +++ b/wcfsetup/install/files/lib/system/search/SearchEngine.class.php @@ -153,7 +153,8 @@ class SearchEngine extends SingletonFactory { foreach ($objectTypes as $objectTypeName) { $objectType = $this->getObjectType($objectTypeName); if (!empty($sql)) $sql .= "\nUNION\n"; - if (($specialSQL = $objectType->getSpecialSQLQuery($fulltextCondition, $searchIndexCondition, (isset($additionalConditions[$objectTypeName]) ? $additionalConditions[$objectTypeName] : null), $orderBy))) { + $additionalConditionsConditionBuilder = (isset($additionalConditions[$objectTypeName]) ? $additionalConditions[$objectTypeName] : null); + if (($specialSQL = $objectType->getSpecialSQLQuery($fulltextCondition, $searchIndexCondition, $additionalConditionsConditionBuilder, $orderBy))) { $sql .= "(".$specialSQL.")"; } else { -- 2.20.1