Commit 0595e9cc authored by Nigel McNie's avatar Nigel McNie Committed by Nigel McNie
Browse files

Don't die horribly if no search term is entered

parent 7aff7d81
......@@ -526,6 +526,10 @@ class PluginSearchInternal extends PluginSearch {
public static function self_search($querystring, $limit, $offset, $type = 'all') {
global $USER;
if (trim($querystring) == '') {
return false;
// Tokenise the search
$querydata = self::search_parse_query($querystring);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment