Fixed empty http_auth_user and pass

This commit is contained in:
Luis Calvo 2019-08-12 12:26:00 +02:00
parent 57fcfee36c
commit db349a4783
1 changed files with 16 additions and 4 deletions

View File

@ -1559,8 +1559,14 @@ if ($update_module) {
foreach ($plugin_parameter_split as $key => $value) {
if ($key == 1) {
$values['plugin_parameter'] .= 'http_auth_user '.$http_user.'
';
$values['plugin_parameter'] .= 'http_auth_pass '.$http_pass.'
';
if ($http_user) {
$values['plugin_parameter'] .= 'http_auth_user '.$http_user.'
';
}
if ($http_pass) {
$values['plugin_parameter'] .= 'http_auth_pass '.$http_pass.'
';
}
$values['plugin_parameter'] .= $value.'
';
} else {
$values['plugin_parameter'] .= $value.'
';
@ -1757,8 +1763,14 @@ if ($create_module) {
foreach ($plugin_parameter_split as $key => $value) {
if ($key == 1) {
$values['plugin_parameter'] .= 'http_auth_user '.$http_user.'
';
$values['plugin_parameter'] .= 'http_auth_pass '.$http_pass.'
';
if ($http_user) {
$values['plugin_parameter'] .= 'http_auth_user '.$http_user.'
';
}
if ($http_pass) {
$values['plugin_parameter'] .= 'http_auth_pass '.$http_pass.'
';
}
$values['plugin_parameter'] .= $value.'
';
} else {
$values['plugin_parameter'] .= $value.'
';