fixed ref loader
[phpgitweb.git] / htdocs / lib / ProjectLoader.class.php
index 8c0c1313419da3f88d360f0cf55c5fc1732e0472..a5ebd74f8b40da65015076ef08b3094a195a5c28 100644 (file)
@@ -115,7 +115,7 @@ class ProjectLoader {
        private function getProjectRefsRecursive(&$project, $cref) {
                if ($dh = opendir($project['path'].'/'.$cref)) {
                        while (($file = readdir($dh)) !== false) {
-                               if($file == '.' || $file == '..')
+                               if($file[0] == '.')
                                        continue;
                                if(is_dir($project['path'].'/'.$cref.'/'.$file))
                                        $this->getProjectRefsRecursive($project, $cref.'/'.$file);