diff --git a/module/finc/src/finc/Hierarchy/TreeRenderer/JSTree.php b/module/finc/src/finc/Hierarchy/TreeRenderer/JSTree.php index 27545e6589dd0f06b9c170fccfc37af3fdeb19cd..33089995cb340666e0520ad52a9f72f22463605b 100644 --- a/module/finc/src/finc/Hierarchy/TreeRenderer/JSTree.php +++ b/module/finc/src/finc/Hierarchy/TreeRenderer/JSTree.php @@ -99,7 +99,7 @@ class JSTree extends \VuFind\Hierarchy\TreeRenderer\JSTree ] ]; } - $cache[$route] = $this->router->fromRoute($route, $params, $options); + $cache[$route] = $this->router->fromRoute($route, $params, $options ?? []); } elseif ($route == 'parent') { // this is nearly the same as for collections // but links on the record view i.e. record route @@ -118,7 +118,7 @@ class JSTree extends \VuFind\Hierarchy\TreeRenderer\JSTree } // use route 'record' here to avoid linking to the // collection view - $cache[$route] = $this->router->fromRoute('record', $params, $options); + $cache[$route] = $this->router->fromRoute('record', $params, $options ?? []); } else { $tab = $this->treeRendererConfig->linkedTabDefault ?? 'Description'; $params = [