Fix building manifest before database is created

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@47831 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Andrew O'Neil 2008-01-10 03:23:09 +00:00
parent 56e46683f7
commit 5529aa2e5f

View File

@ -313,7 +313,7 @@ class ManifestBuilder {
self::parse_file($file); self::parse_file($file);
} }
$tables = DB::getConn()->tableList(); $tables = DB::isActive() ? DB::getConn()->tableList() : array();
$allClasses["parents"] = self::find_parents(); $allClasses["parents"] = self::find_parents();
$allClasses["children"] = self::find_children(); $allClasses["children"] = self::find_children();