diff --git a/code/extensions/FileTextExtractable.php b/code/extensions/FileTextExtractable.php index 39daa22..60d4fbe 100644 --- a/code/extensions/FileTextExtractable.php +++ b/code/extensions/FileTextExtractable.php @@ -28,7 +28,7 @@ class FileTextExtractable extends DataExtension { // Determine which extractor can process this file. $extractor = FileTextExtractor::for_file($this->owner->FullPath); - if (!$extractor) return null; + if (!$extractor || !$extractor->isAvailable()) return null; $text = $extractor->getContent($this->owner->FullPath); if (!$text) return null; @@ -40,4 +40,4 @@ class FileTextExtractable extends DataExtension { } } -?> \ No newline at end of file +?>