diff --git a/workflow/engine/bin/tasks/cliWorkspaces.php b/workflow/engine/bin/tasks/cliWorkspaces.php index 00ad1f68d..165afd35c 100755 --- a/workflow/engine/bin/tasks/cliWorkspaces.php +++ b/workflow/engine/bin/tasks/cliWorkspaces.php @@ -447,7 +447,7 @@ function run_workspace_restore($args, $opts) { $workspace = array_key_exists("workspace", $opts) ? $opts['workspace'] : NULL; $overwrite = array_key_exists("overwrite", $opts); $multiple = array_key_exists("multiple", $opts); - $dstWorkspace = $args[1]; + $dstWorkspace = isset($args[1]) ? $args[1] : null; if(!empty($multiple)){ if(!Bootstrap::isLinuxOs()){ CLI::error("This is not a Linux enviroment, cannot use this multiple [-m] feature.\n");