projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f97bdb9
)
Generator.php
author
Alan Knowles
<alan@akbkhome.com>
Wed, 16 Mar 2011 08:02:10 +0000
(16:02 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Wed, 16 Mar 2011 08:02:10 +0000
(16:02 +0800)
Generator.php
patch
|
blob
|
history
diff --git
a/Generator.php
b/Generator.php
index
2e58dcb
..
7c722ac
100644
(file)
--- 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;