Merge branch 'wip-mdl-55986-fix-2' of https://github.com/rajeshtaneja/moodle

This commit is contained in:
Andrew Nicols 2016-10-06 15:07:16 +08:00
commit 4dfc6a3296
2 changed files with 2 additions and 2 deletions

View file

@ -94,7 +94,7 @@ if ($options['parallel'] && $options['parallel'] > 1) {
// Sanitize all input options, so they can be passed to util. // Sanitize all input options, so they can be passed to util.
foreach ($options as $option => $value) { foreach ($options as $option => $value) {
if ($value) { if ($value) {
$commandoptions .= " --$option='$value'"; $commandoptions .= " --$option=\"$value\"";
} }
} }
} else { } else {

View file

@ -269,7 +269,7 @@ function commands_to_execute($options) {
if ($options[$option]) { if ($options[$option]) {
$extra .= " --$option"; $extra .= " --$option";
if ($value) { if ($value) {
$extra .= "='$value'"; $extra .= "=\"$value\"";
} }
} }
} }