MDL-65446 admin: fix admin email option for cli install
authorRyan Wyllie <ryan@moodle.com>
Tue, 30 Apr 2019 05:29:56 +0000 (13:29 +0800)
committerRyan Wyllie <ryan@moodle.com>
Tue, 30 Apr 2019 05:29:56 +0000 (13:29 +0800)
admin/cli/install.php

index 1e5837f..e9203ec 100644 (file)
@@ -710,7 +710,7 @@ if ($interactive) {
     cli_separator();
     cli_heading(get_string('cliadminemail', 'install'));
     $prompt = get_string('clitypevaluedefault', 'admin', $options['adminemail']);
-    $options['adminemail'] = cli_input($prompt);
+    $options['adminemail'] = cli_input($prompt, $options['adminemail']);
 }
 
 // Validate that the address provided was an e-mail address.