Skip to content
Snippets Groups Projects
Commit 807adb11 authored by Demian Katz's avatar Demian Katz
Browse files

Fixed broken test by adding better checking (don't assume service manager is available).

parent e83452e4
Branches
Tags
No related merge requests found
......@@ -55,7 +55,7 @@ class PluginManager extends \VuFind\ServiceManager\AbstractPluginManager
&& is_callable(array($instance, 'setHierarchyDriverManager'))
) {
$sm = $manager->getServiceLocator();
if ($sm->has('VuFind\HierarchyDriverPluginManager')) {
if ($sm && $sm->has('VuFind\HierarchyDriverPluginManager')) {
$instance->setHierarchyDriverManager(
$sm->get('VuFind\HierarchyDriverPluginManager')
);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment