From 196007314afed70f1e7f8f1a341200551c83a720 Mon Sep 17 00:00:00 2001 From: Alexandre Guidet Date: Wed, 19 Oct 2016 15:46:30 +1300 Subject: [PATCH] fixed the version comparison using version_compare() instead of plain float --- code/extractors/TikaServerTextExtractor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/extractors/TikaServerTextExtractor.php b/code/extractors/TikaServerTextExtractor.php index 5371206..5e42bc9 100644 --- a/code/extractors/TikaServerTextExtractor.php +++ b/code/extractors/TikaServerTextExtractor.php @@ -72,7 +72,7 @@ class TikaServerTextExtractor extends FileTextExtractor { return $this->getServerEndpoint() && $this->getClient()->isAvailable() && - $this->getVersion() >= 1.7; + version_compare($this->getVersion(), '1.7.0') >= 0; } public function supportsExtension($extension)