fixed the version comparison using version_compare() instead of plain float

This commit is contained in:
Alexandre Guidet 2016-10-19 15:46:30 +13:00
parent 545e711f16
commit 196007314a

View File

@ -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)