diff --git a/core/ManifestBuilder.php b/core/ManifestBuilder.php index c413f37d2..fea2e2409 100644 --- a/core/ManifestBuilder.php +++ b/core/ManifestBuilder.php @@ -159,6 +159,8 @@ class ManifestBuilder { // If no base directory specified, the default is the project root if(!$baseDir) $baseDir = BASE_PATH . DIRECTORY_SEPARATOR . THEMES_DIR; $themes = array(); + if(!file_exists($baseDir)) return $themes; + $handle = opendir($baseDir); if($handle) { while(false !== ($file = readdir($handle))) { @@ -591,4 +593,4 @@ class ManifestBuilder { } } -?> \ No newline at end of file +?>