From 9ea4b79543dad9f50ea47102667a738cdec4c8cb Mon Sep 17 00:00:00 2001 From: Loz Calver Date: Mon, 8 Jun 2015 12:42:31 +0100 Subject: [PATCH] FIX: SolrCellTextExtractor always reporting itself as unavailable (fixes #14) --- code/extractors/SolrCellTextExtractor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/extractors/SolrCellTextExtractor.php b/code/extractors/SolrCellTextExtractor.php index 730ab47..29d26f9 100644 --- a/code/extractors/SolrCellTextExtractor.php +++ b/code/extractors/SolrCellTextExtractor.php @@ -39,7 +39,7 @@ class SolrCellTextExtractor extends FileTextExtractor { public function isAvailable() { $url = $this->config()->get('base_url'); - if(!$url) return false; + return (boolean) $url; } public function supportsExtension($extension) {