@@ -25,9 +25,11 @@ |
||
25 | 25 | * @return bool true on success or false on failure |
26 | 26 | */ |
27 | 27 | public function execute() { |
28 | - foreach ($this->data as $actionType => $actionData) try { |
|
28 | + foreach ($this->data as $actionType => $actionData) { |
|
29 | + try { |
|
29 | 30 | if (!isset($actionType)) |
30 | 31 | continue; |
32 | + } |
|
31 | 33 | switch ($actionType) { |
32 | 34 | case 'certificate': |
33 | 35 | $data = $this->verifyCertificate($actionData); |
@@ -98,8 +98,9 @@ |
||
98 | 98 | // Get messages from certificates |
99 | 99 | foreach ($privateCerts as $privateCert) { |
100 | 100 | $privateCertMessage = mapi_msgstore_openentry($store, $privateCert[PR_ENTRYID]); |
101 | - if ($privateCertMessage === false) |
|
102 | - continue; |
|
101 | + if ($privateCertMessage === false) { |
|
102 | + continue; |
|
103 | + } |
|
103 | 104 | $pkcs12 = ""; |
104 | 105 | $certs = []; |
105 | 106 | // Read pkcs12 cert from message |
@@ -96,7 +96,8 @@ |
||
96 | 96 | <div class="disclaimer"> |
97 | 97 | <?php include '/etc/grommunio-web/disclaimer.html'; ?> |
98 | 98 | </div> |
99 | - <?php } elseif (file_exists('disclaimer.html')) { ?> |
|
99 | + <?php } |
|
100 | +elseif (file_exists('disclaimer.html')) { ?> |
|
100 | 101 | <div class="disclaimer"> |
101 | 102 | <?php include 'disclaimer.html'; ?> |
102 | 103 | </div> |