system: why init string when you want an array...

This commit is contained in:
Franco Fichtner 2017-12-08 13:30:26 +01:00
parent 5c3d077fe6
commit 11ac9d3ed1

View File

@ -430,7 +430,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
'emailAddress' => $pconfig['dn_email'],
'commonName' => $pconfig['dn_commonname']);
if (count($altnames)) {
$altnames_tmp = "";
$altnames_tmp = array();
foreach ($altnames as $altname) {
$altnames_tmp[] = "{$altname['type']}:{$altname['value']}";
}
@ -465,7 +465,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
$dn['organizationalUnitName'] = $pconfig['csr_dn_organizationalunit'];
}
if (count($altnames)) {
$altnames_tmp = "";
$altnames_tmp = array();
foreach ($altnames as $altname) {
$altnames_tmp[] = "{$altname['type']}:{$altname['value']}";
}