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

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

Closes #1238

Merge request studip/studip!753
parent 4f837245
No related branches found
No related tags found
No related merge requests found
...@@ -827,15 +827,15 @@ class ForumEntry implements PrivacyObject ...@@ -827,15 +827,15 @@ class ForumEntry implements PrivacyObject
$search_word = '%'. $val .'%'; $search_word = '%'. $val .'%';
$zw_search_string = []; $zw_search_string = [];
if ($options['search_title']) { 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']) { 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']) { 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)) { 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