1
0

Do not transform empty search queries

This commit is contained in:
Garvin Hicking
2008-10-05 18:02:56 +00:00
parent dea54611fd
commit f012aaf2eb

View File

@ -29,7 +29,7 @@ class serendipity_event_searchhighlight extends serendipity_event
$propbag->add('description', PLUGIN_EVENT_SEARCHHIGHLIGHT_DESC);
$propbag->add('stackable', false);
$propbag->add('author', 'Tom Sommer');
$propbag->add('version', '1.5');
$propbag->add('version', '1.6');
$propbag->add('requirements', array(
'serendipity' => '0.8',
'smarty' => '2.6.7',
@ -190,6 +190,7 @@ class serendipity_event_searchhighlight extends serendipity_event
/* Clean the query */
$query = trim($query);
if (empty($query)) return false;
$query = preg_replace('/(\"|\')/i', '', $query);
/* Split by search engine chars or spaces */