projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ef82e41
)
Generator.php
author
Alan Knowles
<alan@akbkhome.com>
Wed, 16 Mar 2011 03:29:29 +0000
(11:29 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Wed, 16 Mar 2011 03:29:29 +0000
(11:29 +0800)
Generator.php
patch
|
blob
|
history
diff --git
a/Generator.php
b/Generator.php
index
a7dfeb2
..
0038cb6
100644
(file)
--- a/
Generator.php
+++ b/
Generator.php
@@
-420,7
+420,8
@@
touch Pman/????/DataObjects/".ucfirst($this->table).".php
// file_get_contents???
- $oldcontents = file_get_contents($orig);
+
+ $oldcontents = file_exists($orig) ? file_get_contents($orig) : '';
echo "GENERATE: " . $this->classname . ($cli ? "\n" : "<BR>");