Don't run gambits if there's no search query

This commit is contained in:
Toby Zerner 2015-07-22 09:57:52 +09:30
parent 970030b77e
commit 222a08222f

View File

@ -86,6 +86,10 @@ class GambitManager
{
$bits = $this->explode($query);
if (! $bits) {
return '';
}
$gambits = array_map([$this->container, 'make'], $this->gambits);
foreach ($bits as $k => $bit) {