From 409725f43e77c71f9c7b6b7a47e50dcb9bbfea48 Mon Sep 17 00:00:00 2001 From: Ariel Glenn Date: Mon, 29 Aug 2011 22:48:18 +0000 Subject: [PATCH] check the checkpoint related options only if we specified checkpoints, duh --- maintenance/dumpTextPass.php | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/maintenance/dumpTextPass.php b/maintenance/dumpTextPass.php index d45199003c..a000385941 100644 --- a/maintenance/dumpTextPass.php +++ b/maintenance/dumpTextPass.php @@ -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"); + } } } -- 2.20.1