Revision c6c398c6
Added by Jim Pingle over 6 years ago
src/usr/local/www/system_crlmanager.php | ||
---|---|---|
48 | 48 |
$id = $_REQUEST['id']; |
49 | 49 |
} |
50 | 50 |
|
51 |
if (!is_array($config['ca'])) { |
|
52 |
$config['ca'] = array(); |
|
53 |
} |
|
54 |
|
|
55 |
$a_ca =& $config['ca']; |
|
56 |
|
|
57 |
if (!is_array($config['cert'])) { |
|
58 |
$config['cert'] = array(); |
|
59 |
} |
|
60 |
|
|
61 |
$a_cert =& $config['cert']; |
|
51 |
init_config_arr(array('ca')); |
|
52 |
$a_ca = &$config['ca']; |
|
62 | 53 |
|
63 |
if (!is_array($config['crl'])) { |
|
64 |
$config['crl'] = array(); |
|
65 |
} |
|
54 |
init_config_arr(array('cert')); |
|
55 |
$a_cert = &$config['cert']; |
|
66 | 56 |
|
67 |
$a_crl =& $config['crl']; |
|
57 |
init_config_arr(array('crl')); |
|
58 |
$a_crl = &$config['crl']; |
|
68 | 59 |
|
69 | 60 |
foreach ($a_crl as $cid => $acrl) { |
70 | 61 |
if (!isset($acrl['refid'])) { |
Also available in: Unified diff
Fix #9121: Initialize arrays to prevent PHP 7 errors