projects
/
Pman.Core
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Generator.php
[Pman.Core]
/
Generator.php
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>");