BranchesDashboard: do not fail with no dashlet
This commit is contained in:
parent
b898041caa
commit
6cc902f238
|
@ -29,6 +29,8 @@ class BranchesDashboard extends Dashboard
|
|||
/** @var BranchSupportHook $hook */
|
||||
if ($hook = Hook::first('director/BranchSupport')) {
|
||||
$this->dashlets = $hook->loadDashlets($this->getDb());
|
||||
} else {
|
||||
$this->dashlets = [];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue