Commit a6e87d80e28427775545fd3be9770e6177abf146

Authored by Paul Barrett
2 parents 4ecdb0ca 5b673868

Merge branch 'master' of git@github.com:ktgit/knowledgetree

search2/indexing/indexerCore.inc.php
@@ -759,9 +759,11 @@ abstract class Indexer @@ -759,9 +759,11 @@ abstract class Indexer
759 { 759 {
760 $content = file_get_contents($filename); 760 $content = file_get_contents($filename);
761 761
762 - // if the file is empty something went wrong with the text extraction 762 + // if the file is empty skip the filter - document was probably empty
763 if(empty($content)){ 763 if(empty($content)){
764 - return false; 764 + global $default;
  765 + $default->log->debug('No text was extracted from the document. Either it was empty or there was a problem with the extraction');
  766 + return true;
765 } 767 }
766 768
767 $src = array("([\r\n])","([\n][\n])","([\n])","([\t])",'([ ][ ])'); 769 $src = array("([\r\n])","([\n][\n])","([\n])","([\t])",'([ ][ ])');