Commit 04b5edc9d6b55a6769568901af11857e88b7e5ad

Authored by nbm
1 parent 09da2f03

If we can't find the command, return with no contents.


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@4438 c91229c3-7414-0410-bfa2-8a42b809f60b
plugins/ktstandard/contents/BaseIndexer.php
... ... @@ -78,6 +78,9 @@ class KTBaseIndexerTrigger {
78 78 // handles certain, _very_ simple reader types.
79 79 function extract_contents($sFilename, $sTempFilename) {
80 80 $sCommand = KTUtil::findCommand($this->commandconfig, $this->command);
  81 + if (empty($sCommand)) {
  82 + return false;
  83 + }
81 84  
82 85 $cmdline = array($sCommand);
83 86 $cmdline = array_merge($cmdline, $this->args);
... ...