Skip to content
Snippets Groups Projects
Commit f9280d7c authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms Committed by Jan-Hendrik Willms
Browse files

fix array usage in ForumEntry::getSearchResults(), fixes #1238

Closes #1238

Merge request studip/studip!753
parent 9db0153c
No related branches found
No related tags found
No related merge requests found
......@@ -825,15 +825,15 @@ class ForumEntry implements PrivacyObject
$search_word = '%'. $val .'%';
$zw_search_string = [];
if ($options['search_title']) {
$zw_search_string[] .= "name LIKE " . DBManager::get()->quote($search_word);
$zw_search_string[] = "name LIKE " . DBManager::get()->quote($search_word);
}
if ($options['search_content']) {
$zw_search_string[] .= "content LIKE " . DBManager::get()->quote($search_word);
$zw_search_string[] = "content LIKE " . DBManager::get()->quote($search_word);
}
if ($options['search_author']) {
$zw_search_string[] .= "author LIKE " . DBManager::get()->quote($search_word);
$zw_search_string[] = "author LIKE " . DBManager::get()->quote($search_word);
}
if (!empty($zw_search_string)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment