Generator.php
authorAlan Knowles <alan@akbkhome.com>
Mon, 5 Sep 2011 06:07:04 +0000 (14:07 +0800)
committerAlan Knowles <alan@akbkhome.com>
Mon, 5 Sep 2011 06:07:04 +0000 (14:07 +0800)
Generator.php

index d639fa9..9fdde2a 100644 (file)
@@ -167,7 +167,7 @@ class Pman_Core_Generator extends DB_DataObject_Generator
                 
                 if (!file_exists($tg) || !filesize($tg) ) {
                   
-                    if ($cli && !filesize($tg) || in_array($f, $flist)) {
+                    if ($cli && file_exists($tg) || in_array($f, $flist)) {
                         echo "COPY $src $tg" . ($cli ? "\n" : "<BR>");
                         copy($src, $tg);
                         continue;