From 3babf63f7f428714e3f21e54a38a2457d6eb359a Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Wed, 16 Mar 2011 11:29:29 +0800 Subject: [PATCH] Generator.php --- Generator.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Generator.php b/Generator.php index a7dfeb28..0038cb6e 100644 --- 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" : "
"); -- 2.39.2