From: Ariel Glenn Date: Mon, 29 Aug 2011 22:48:18 +0000 (+0000) Subject: check the checkpoint related options only if we specified checkpoints, duh X-Git-Tag: 1.31.0-rc.0~28020 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/modifier.php?a=commitdiff_plain;h=409725f43e77c71f9c7b6b7a47e50dcb9bbfea48;p=lhc%2Fweb%2Fwiklou.git check the checkpoint related options only if we specified checkpoints, duh --- 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"); + } } }