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