Skip to content

Commit

Permalink
fix exclusions only using first word
Browse files Browse the repository at this point in the history
  • Loading branch information
struan committed Jan 28, 2025
1 parent bf27e85 commit e48ef1f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions classes/AlertView/Standard.php
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ private function getBasicData() {
}
}
}
$this->data['exclusions'] = trim(get_http_var("exclusions", implode('', $this->data['alert_parts']['exclusions'])));
$this->data['exclusions'] = trim(get_http_var("exclusions", implode(' ', $this->data['alert_parts']['exclusions'])));
$this->data['representative'] = trim(get_http_var("representative", $existing_rep));

$this->data['search_section'] = trim(get_http_var("search_section", $existing_section));
Expand All @@ -237,7 +237,7 @@ private function getBasicData() {
}
$this->data['keyword'] = implode($separator, $this->data['words']);
if ($this->data['exclusions']) {
$this->data['keyword'] = '(' . $this->data['keyword'] . ') -' . $this->data["exclusions"];
$this->data['keyword'] = '(' . $this->data['keyword'] . ') -' . implode(' -', explode(' ', $this->data["exclusions"]));
}

$this->data['results'] = '';
Expand All @@ -259,7 +259,7 @@ private function getBasicData() {
} else {
$this->data['ignore_speaker_votes'] = get_http_var('ignore_speaker_votes');
}
} # XXX probably should do something here if $alertsearch is set
}

$this->data['sign'] = get_http_var('sign');
$this->data['site'] = get_http_var('site');
Expand Down

0 comments on commit e48ef1f

Please sign in to comment.