From: Alan Knowles Date: Wed, 16 Mar 2011 08:02:10 +0000 (+0800) Subject: Generator.php X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=d0f66e010ac7114b82e9b764957c496c9d8a55a0 Generator.php --- 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;