From: Alexander Ebert Date: Fri, 12 Jul 2013 15:34:49 +0000 (+0200) Subject: Using explicit object references for getSpecialSQLQuery() X-Git-Tag: 2.0.0_Beta_5~63^2~2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b3cd58902cec4bc8f03c359c81d3624e3fc862c6;p=GitHub%2FWoltLab%2FWCF.git Using explicit object references for getSpecialSQLQuery() Fixes #1399 --- diff --git a/wcfsetup/install/files/lib/system/search/AbstractSearchableObjectType.class.php b/wcfsetup/install/files/lib/system/search/AbstractSearchableObjectType.class.php index e5fe9188ff..fbc9a5d9c3 100644 --- a/wcfsetup/install/files/lib/system/search/AbstractSearchableObjectType.class.php +++ b/wcfsetup/install/files/lib/system/search/AbstractSearchableObjectType.class.php @@ -86,7 +86,7 @@ abstract class AbstractSearchableObjectType extends AbstractObjectTypeProcessor /** * @see wcf\system\search\ISearchableObjectType::getSpecialSQLQuery() */ - public function getSpecialSQLQuery(PreparedStatementConditionBuilder $fulltextCondition = null, PreparedStatementConditionBuilder $searchIndexConditions = null, PreparedStatementConditionBuilder $additionalConditions = null, $orderBy = 'time DESC') { + public function getSpecialSQLQuery(PreparedStatementConditionBuilder &$fulltextCondition = null, PreparedStatementConditionBuilder &$searchIndexConditions = null, PreparedStatementConditionBuilder &$additionalConditions = null, $orderBy = 'time DESC') { return ''; } } diff --git a/wcfsetup/install/files/lib/system/search/ISearchableObjectType.class.php b/wcfsetup/install/files/lib/system/search/ISearchableObjectType.class.php index 5605376d5c..e5243db55f 100644 --- a/wcfsetup/install/files/lib/system/search/ISearchableObjectType.class.php +++ b/wcfsetup/install/files/lib/system/search/ISearchableObjectType.class.php @@ -124,5 +124,5 @@ interface ISearchableObjectType { * @param string $orderBy * @return string */ - public function getSpecialSQLQuery(PreparedStatementConditionBuilder $fulltextCondition = null, PreparedStatementConditionBuilder $searchIndexConditions = null, PreparedStatementConditionBuilder $additionalConditions = null, $orderBy = 'time DESC'); + public function getSpecialSQLQuery(PreparedStatementConditionBuilder &$fulltextCondition = null, PreparedStatementConditionBuilder &$searchIndexConditions = null, PreparedStatementConditionBuilder &$additionalConditions = null, $orderBy = 'time DESC'); }