Dump.php
authorAlan Knowles <alan@akbkhome.com>
Mon, 21 Mar 2011 09:08:45 +0000 (17:08 +0800)
committerAlan Knowles <alan@akbkhome.com>
Mon, 21 Mar 2011 09:08:45 +0000 (17:08 +0800)
Dump.php

index 229a0cd..4df7c69 100644 (file)
--- a/Dump.php
+++ b/Dump.php
@@ -344,7 +344,9 @@ class Pman_Admin_Dump extends Pman {
     }
     function generateShell() {
         
-        
+        if (empty($this->childfiles)) {
+            return;
+        }
         $target = $this->args['dump-dir'] .'/'. date('Y-m-d').'.copy.sh';
         $this->out[] = $target;
         $fh = fopen($target, 'w');