Remove redundancy as pointed out by phil-davis

This commit is contained in:
Renato Botelho 2014-10-28 14:55:07 -02:00
parent 44c7d73c4a
commit 70eef83536
1 changed files with 3 additions and 7 deletions

View File

@ -826,14 +826,10 @@ function system_webgui_start() {
if ($config['system']['webgui']['protocol'] == "https") {
// Ensure that we have a webConfigurator CERT
$cert =& lookup_cert($config['system']['webgui']['ssl-certref']);
if(!is_array($cert) || !$cert['crt'] || !$cert['prv']) {
if(!is_array($cert) || !$cert['crt'] || !$cert['prv'])
$cert = system_webgui_create_certificate();
$crt = base64_decode($cert['crt']);
$key = base64_decode($cert['prv']);
} else {
$crt = base64_decode($cert['crt']);
$key = base64_decode($cert['prv']);
}
$crt = base64_decode($cert['crt']);
$key = base64_decode($cert['prv']);
if(!$config['system']['webgui']['port'])
$portarg = "443";