Commit 28462e9ce5b7436d7534c3e3aa0c4c2b6b193a70
1 parent
6b1b118d
KTS-3179
"OOPresentationExtractor not working" Fixed. Committed By: Conrad Vermeulen Reviewed By: Megan Watson git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@8283 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
6 additions
and
0 deletions
search2/indexing/indexerCore.inc.php
| @@ -1026,6 +1026,12 @@ abstract class Indexer | @@ -1026,6 +1026,12 @@ abstract class Indexer | ||
| 1026 | } | 1026 | } |
| 1027 | 1027 | ||
| 1028 | $document = Document::get($docId); | 1028 | $document = Document::get($docId); |
| 1029 | + if (PEAR::isError($document)) | ||
| 1030 | + { | ||
| 1031 | + Indexer::unqueueDocument($docId,sprintf(_kt("indexDocuments: Cannot resolve document id %d: %s."),$docId, $document->getMessage()), 'error'); | ||
| 1032 | + continue; | ||
| 1033 | + } | ||
| 1034 | + | ||
| 1029 | $version = $document->getMajorVersionNumber() . '.' . $document->getMinorVersionNumber(); | 1035 | $version = $document->getMajorVersionNumber() . '.' . $document->getMinorVersionNumber(); |
| 1030 | $sourceFile = $storageManager->temporaryFile($document); | 1036 | $sourceFile = $storageManager->temporaryFile($document); |
| 1031 | 1037 |