diff --git a/rebuild.php b/rebuild.php index c391e65..b238c31 100644 --- a/rebuild.php +++ b/rebuild.php @@ -359,6 +359,7 @@ function listprojects() { $projects = array(); foreach($ls as $dirname) { if ($dirname[0] == '.') continue; + if (! is_dir(BASEDIR.'data/'.$dirname)) continue; $matches = array(); if (preg_match('~(?:\d+-)?(.+)~', $dirname, $matches)) {