summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'MLEB/Translate/ttmserver/FuzzyLikeThis.php')
-rw-r--r--MLEB/Translate/ttmserver/FuzzyLikeThis.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/MLEB/Translate/ttmserver/FuzzyLikeThis.php b/MLEB/Translate/ttmserver/FuzzyLikeThis.php
index 143b3222..82798584 100644
--- a/MLEB/Translate/ttmserver/FuzzyLikeThis.php
+++ b/MLEB/Translate/ttmserver/FuzzyLikeThis.php
@@ -199,6 +199,7 @@ class FuzzyLikeThis extends \Elastica\Query\AbstractQuery {
* @see \Elastica\Query\AbstractQuery::toArray()
*/
public function toArray() {
+ $args = [];
if ( !empty( $this->_fields ) ) {
$args['fields'] = $this->_fields;
}