mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
Fix PHP error for invalid cert files
This commit is contained in:
@@ -422,7 +422,7 @@ class Lotw extends CI_Controller {
|
||||
$filename = file_get_contents('file://'.$file);
|
||||
$worked = openssl_pkcs12_read($filename, $results, $password);
|
||||
|
||||
if ($results['cert']) {
|
||||
if (array_key_exists('cert', $results)) {
|
||||
$data['general_cert'] = $results['cert'];
|
||||
} else {
|
||||
log_message('error', 'Found no certificate in file '.$file);
|
||||
|
||||
Reference in New Issue
Block a user