Generator.php
authorAlan Knowles <alan@akbkhome.com>
Mon, 6 Sep 2010 06:01:13 +0000 (14:01 +0800)
committerAlan Knowles <alan@akbkhome.com>
Mon, 6 Sep 2010 06:01:13 +0000 (14:01 +0800)
Generator.php

index 2c543be..d3285aa 100644 (file)
@@ -164,8 +164,8 @@ class Pman_Core_Generator extends DB_DataObject_Generator
                 
                 if (!file_exists($tg) || !filesize($tg) ) {
                   
-                    if ($cli && in_array($f, $flist)) {
-                       echo "COPY $src $tg" . ($cli ? "\n" : "<BR>");
+                    if ($cli && !filesize($tg) || in_array($f, $flist)) {
+                        echo "COPY $src $tg" . ($cli ? "\n" : "<BR>");
                         copy($src, $tg);
                         continue;
                     }