From d0f66e010ac7114b82e9b764957c496c9d8a55a0 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Wed, 16 Mar 2011 16:02:10 +0800 Subject: [PATCH] Generator.php --- Generator.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Generator.php b/Generator.php index 2e58dcbb..7c722ace 100644 --- a/Generator.php +++ b/Generator.php @@ -151,8 +151,11 @@ class Pman_Core_Generator extends DB_DataObject_Generator if (!empty($options['mods'] ) && !in_array($m, $options['mods'] )) { continue; } - - + // this happens when we have no database tables from a module, + // but module code has been defined. + if (!file_exists($options['rootDir'].'/'.$m)) { + continue; + } foreach(scandir($options['rootDir'].'/'.$m) as $f) { if (!strlen($f) || $f[0] == '.') { continue; -- 2.39.2