summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www
diff options
context:
space:
mode:
authorjim-p <jimp@netgate.com>2018-09-12 14:16:52 -0400
committerjim-p <jimp@netgate.com>2018-09-12 14:17:08 -0400
commit3d9d84d4bb3972bfddc30b1b35152ae3ba7c1cb8 (patch)
tree7208f8048472abb4742fd0076715597364867b9e /src/usr/local/www
parentcf66932544d26beaf54ffc705ad3a416eb00b1c7 (diff)
downloadpfsense-3d9d84d4bb3972bfddc30b1b35152ae3ba7c1cb8.zip
pfsense-3d9d84d4bb3972bfddc30b1b35152ae3ba7c1cb8.tar.gz
Fix a PHP erorr when a CRL has no certificates
(cherry picked from commit d9064f0b92452daeaf0cb7f0a0e74561f246ed5b)
Diffstat (limited to 'src/usr/local/www')
-rw-r--r--src/usr/local/www/system_crlmanager.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/usr/local/www/system_crlmanager.php b/src/usr/local/www/system_crlmanager.php
index 77eb2bb..44da3df 100644
--- a/src/usr/local/www/system_crlmanager.php
+++ b/src/usr/local/www/system_crlmanager.php
@@ -633,6 +633,9 @@ if ($act == "new" || $act == gettext("Save") || $input_errors) {
foreach ($ca_crl_map[$ca['refid']] as $crl):
$tmpcrl = lookup_crl($crl);
$internal = is_crl_internal($tmpcrl);
+ if ($internal && (!isset($tmpcrl['cert']) || empty($tmpcrl['cert'])) ) {
+ $tmpcrl['cert'] = array();
+ }
$inuse = crl_in_use($tmpcrl['refid']);
?>
<tr>
OpenPOWER on IntegriCloud