fixed ref loader
authorpk910 <philipp@zoelle1.de>
Thu, 14 Feb 2013 07:34:05 +0000 (08:34 +0100)
committerpk910 <philipp@zoelle1.de>
Thu, 14 Feb 2013 07:34:05 +0000 (08:34 +0100)
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);