From 897d51a03b80d3574d633a216de14c6333faeb52 Mon Sep 17 00:00:00 2001 From: Demian Katz <demian.katz@villanova.edu> Date: Tue, 19 Feb 2013 13:33:36 -0500 Subject: [PATCH] Cleaned up cache directory configuration. --- module/VuFind/src/VuFind/Hierarchy/TreeDataSource/Solr.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/module/VuFind/src/VuFind/Hierarchy/TreeDataSource/Solr.php b/module/VuFind/src/VuFind/Hierarchy/TreeDataSource/Solr.php index de14969a036..98b40f6db3e 100644 --- a/module/VuFind/src/VuFind/Hierarchy/TreeDataSource/Solr.php +++ b/module/VuFind/src/VuFind/Hierarchy/TreeDataSource/Solr.php @@ -60,7 +60,7 @@ class Solr extends AbstractBase * * @var string */ - protected $cacheDir; + protected $cacheDir = null; /** * Constructor. @@ -75,7 +75,9 @@ class Solr extends AbstractBase ) { $this->solr = $solr; $this->driverFactory = $factory; - $this->cacheDir = rtrim($cacheDir, '/'); + if (null !== $cacheDir) { + $this->cacheDir = rtrim($cacheDir, '/'); + } } /** -- GitLab