better patch

This commit is contained in:
Garvin Hicking 2010-03-11 09:14:42 +00:00
parent 1125523eca
commit 29d21264d6

View File

@ -864,7 +864,7 @@ function &serendipity_searchEntries($term, $limit = '', $searchresults = '') {
//if * wasn't already appended and if there are none or not enough
//results, search again for entries containing the searchterm as a part
if (strpos($term, '*') === false && strpos($term, '%') === false) {
if (strpos($term, '*') === false && $serendipity['dbType'] != 'sqlite' && $serendipity['dbType'] != 'sqlite3') {
if (! is_array($search)) {
return serendipity_searchEntries($term.'*', $orig_limit);
}else if (count($search) < 4){