Skip to content

Commit

Permalink
Fix: Invalid check for EngineKey
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco Hermo committed Dec 16, 2018
1 parent d1acfd7 commit 014ec12
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/SwiftypeClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -434,12 +434,12 @@ public function search($term = '', $filters = [], $pageNumber = 0, $pageLength =
$this->engineSlug ?: $indexName
);

if (!empty($indexConfig['engineKey'])) {
if ($this->engineKey) {
$url = sprintf(
'%s/public/engines/search.json',
parse_url($endPoint, PHP_URL_PATH)
);
$data['engine_key'] = $indexConfig['engineKey'];
$data['engine_key'] = $this->engineKey;
unset($data['auth_token']);
}

Expand Down

0 comments on commit 014ec12

Please sign in to comment.