Skip to content
This repository has been archived by the owner on Jan 10, 2021. It is now read-only.

Commit

Permalink
[MINOR] Tidy.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathan Glasl committed Sep 6, 2018
1 parent 7306264 commit 07f1150
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# [extensible search](https://packagist.org/packages/nglasl/silverstripe-extensible-search)

_The current release is **4.1.0**_
_The current release is **4.1.1**_

> This module allows user customisation and developer extension of a search page instance, including analytics and suggestions.
Expand Down
6 changes: 1 addition & 5 deletions src/pages/ExtensibleSearchPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -431,11 +431,7 @@ public function getSelectableFields() {

// Determine the search engine specific selectable fields.

$fields = singleton($this->SearchEngine)->getSelectableFields($this);
if (!$fields) {
// If null or falsey type, change to array
$fields = [];
}
$fields = singleton($this->SearchEngine)->getSelectableFields($this) ?: array();
return $fields + $selectable;
}
else if(($this->SearchEngine === 'Full-Text') && is_array($classes = Config::inst()->get(FulltextSearchable::class, 'searchable_classes')) && (count($classes) > 0)) {
Expand Down

0 comments on commit 07f1150

Please sign in to comment.