From: Alexander Ebert Date: Sun, 14 Jul 2013 21:11:25 +0000 (+0200) Subject: Fixed search (only variables may be passed by reference) X-Git-Tag: 2.0.0_Beta_5~44^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=96763dd26dab9eb5fbfd478c2d7f2145d06452c7;p=GitHub%2FWoltLab%2FWCF.git Fixed search (only variables may be passed by reference) --- 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 {