Commit 7fc76a71fe599cb15e97d5a08e663a5d05d4f1f3

Authored by conradverm
1 parent 1a881880

KTS-673

"The search algorithm needs some work"
Updated.

Committed By: Conrad Vermeulen
Reviewed By: Kevin Fourie

git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@7344 c91229c3-7414-0410-bfa2-8a42b809f60b
search2/indexing/indexerCore.inc.php
... ... @@ -791,8 +791,13 @@ abstract class Indexer
791 791 $diagnoses = array();
792 792 $dir = opendir($path);
793 793 $extlen = - strlen($extension);
  794 +
794 795 while (($file = readdir($dir)) !== false)
795 796 {
  797 + if (substr($file,0,1) == '.')
  798 + {
  799 + continue;
  800 + }
796 801 if (substr($file,$extlen) != $extension)
797 802 {
798 803 $default->log->error(sprintf(_kt("diagnose: '%s' does not have extension '%s'."), $file, $extension));
... ...