Generator.php
authorAlan Knowles <alan@akbkhome.com>
Wed, 16 Mar 2011 03:29:29 +0000 (11:29 +0800)
committerAlan Knowles <alan@akbkhome.com>
Wed, 16 Mar 2011 03:29:29 +0000 (11:29 +0800)
Generator.php

index a7dfeb2..0038cb6 100644 (file)
@@ -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>");