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 e1a51f095f
commit c697c734d5

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) {