Skip to content

Commit

Permalink
fix minor errors
Browse files Browse the repository at this point in the history
  • Loading branch information
christianbltr committed Oct 13, 2016
1 parent 7c935c7 commit 03a4dde
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions Classes/lib/class.tx_kesearch_db.php
Original file line number Diff line number Diff line change
Expand Up @@ -422,6 +422,7 @@ public function chooseBestIndex($searchString = '', $tags = '')
*/
protected function createQueryForTags(array $tags)
{
$where = '';
if (count($tags) && is_array($tags)) {
foreach ($tags as $value) {
$value = $GLOBALS['TYPO3_DB']->quoteStr($value, 'tx_kesearch_index');
Expand Down
5 changes: 3 additions & 2 deletions Classes/lib/class.tx_kesearch_filters.php
Original file line number Diff line number Diff line change
Expand Up @@ -284,24 +284,25 @@ public function languageOverlay(array $rows, $table)

/**
* check if an allowed tag (defined in a filteroption) was found in the current result list
*
* @param string $tag The tag to match against the searchresult
* @return boolean TRUE if tag was found. Else FALSE
*/
public function checkIfTagMatchesRecords($tag)
{

// if tag list is empty, fetch them from the result list
// otherwise use the cached result list
if (!$this->tagsInSearchResult) {
$this->tagsInSearchResult = $this->pObj->tagsInSearchResult = $this->db->getTagsFromSearchResult();
$GLOBALS['TSFE']->fe_user->setKey('ses', 'ke_search.tagsInSearchResults', $tagsInSearchResult);
$GLOBALS['TSFE']->fe_user->setKey('ses', 'ke_search.tagsInSearchResults', $this->tagsInSearchResult);
}

return array_key_exists($tag, $this->tagsInSearchResult);
}

/**
* returns the tag char: a character which wraps tags in the database
*
* @return string
*/
public function getTagChar()
Expand Down
1 change: 1 addition & 0 deletions Classes/lib/class.tx_kesearch_lib_sorting.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ public function init(tx_kesearch_lib $pObj)
*/
public function renderSorting(&$fluidTemplateVariables)
{
$links = '';
// show sorting:
// if show Sorting is activated in FlexForm
// if a value to sortBy is set in FlexForm (title, relevance, sortdate, what ever...)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ public function renderTextlinks($filterUid, $optionsOfSearchresult, $lib)
$this->saveRenderedTextlinkToGlobalArrays($filterUid, $data);
}

$contentOptions = '';
if (is_array($this->contentOfActiveOptions) && count($this->contentOfActiveOptions)) {
foreach ($this->contentOfActiveOptions as $option) {
$contentOptions .= $option;
Expand Down
1 change: 1 addition & 0 deletions pi3/class.tx_kesearch_pi3.php
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ public function main($content, $conf)
)
);
if (is_array($this->piVars['filter']) && count($this->piVars['filter'])) {
$hidden = '';
foreach ($this->piVars['filter'] as $filterKey => $filterValue) {
if ($filterKey == $filter['uid']) {
continue;
Expand Down

0 comments on commit 03a4dde

Please sign in to comment.