check the checkpoint related options only if we specified checkpoints, duh
authorAriel Glenn <ariel@users.mediawiki.org>
Mon, 29 Aug 2011 22:48:18 +0000 (22:48 +0000)
committerAriel Glenn <ariel@users.mediawiki.org>
Mon, 29 Aug 2011 22:48:18 +0000 (22:48 +0000)
maintenance/dumpTextPass.php

index d451990..a000385 100644 (file)
@@ -245,12 +245,14 @@ class TextPassDumper extends BackupDumper {
                        }
                }
 
-               $filenameList = $this->egress->getFilename();
-               if (! is_array($filenameList)) {
-                       $filenameList = array( $filenameList );
-               }
-               if (count($filenameList) != count($this->checkpointFiles)) {
-                       wfDie("One checkpointfile must be specified for each output option, if maxtime is used.\n");
+               if ($this->checkpointFiles) {
+                       $filenameList = $this->egress->getFilename();
+                       if (! is_array($filenameList)) {
+                               $filenameList = array( $filenameList );
+                       }
+                       if (count($filenameList) != count($this->checkpointFiles)) {
+                               wfDie("One checkpointfile must be specified for each output option, if maxtime is used.\n");
+                       }
                }
        }