Skip to content

Commit

Permalink
system: why init string when you want an array...
Browse files Browse the repository at this point in the history
  • Loading branch information
fichtner committed Dec 8, 2017
1 parent 5c3d077 commit 11ac9d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/www/system_certmanager.php
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ function () {
'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']}";
}
Expand Down Expand Up @@ -465,7 +465,7 @@ function () {
$dn['organizationalUnitName'] = $pconfig['csr_dn_organizationalunit'];
}
if (count($altnames)) {
$altnames_tmp = "";
$altnames_tmp = array();
foreach ($altnames as $altname) {
$altnames_tmp[] = "{$altname['type']}:{$altname['value']}";
}
Expand Down

0 comments on commit 11ac9d3

Please sign in to comment.