mirror of
https://github.com/flarum/framework.git
synced 2025-02-21 14:24:57 +08:00
Don't run gambits if there's no search query
This commit is contained in:
parent
970030b77e
commit
222a08222f
@ -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…
x
Reference in New Issue
Block a user