mirror of
https://github.com/flarum/framework.git
synced 2025-02-01 14:20:44 +08:00
Don't run gambits if there's no search query
This commit is contained in:
parent
e1a51f095f
commit
c697c734d5
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user