Blogmaster - Blog system for TYPO3 CMS. A simple extension to create blog in TYPO3. The extension is available on TER, you can install it from TYPO3 ExtensionManager or via composer. (EXT:blogmaster)
GNU General Public License v3.0
4
stars
0
forks
source link
Blog search error when using multiple searchwords #7
this combines 2 searchwords first and then tries to explode with ",", does not work, search for "Internet Data" creates a new Searchword "InternetData"...
in PostRepository, function search:
this combines 2 searchwords first and then tries to explode with ",", does not work, search for "Internet Data" creates a new Searchword "InternetData"...
$parseKey = explode(',', str_replace(' ', '', $keyword));
I changed to:
$parseKey = explode(',', str_replace(' ', ',', trim($keyword))); $parseKey = array_filter($parseKey);