@@ -71,12 +71,14 @@ |
||
71 | 71 | ->setUsername($mCfg['user']); |
72 | 72 | |
73 | 73 | // set auth password if exist |
74 | - if ($mCfg['password'] !== null && strlen($mCfg['password']) > 0) |
|
75 | - $transport->setPassword($mCfg['password']); |
|
74 | + if ($mCfg['password'] !== null && strlen($mCfg['password']) > 0) { |
|
75 | + $transport->setPassword($mCfg['password']); |
|
76 | + } |
|
76 | 77 | |
77 | 78 | // set encryption method |
78 | - if (\Ffcms\Core\Helper\Type\Arr::in($mCfg['encrypt'], ['tls', 'ssl'])) |
|
79 | - $transport->setEncryption($mCfg['encrypt']); |
|
79 | + if (\Ffcms\Core\Helper\Type\Arr::in($mCfg['encrypt'], ['tls', 'ssl'])) { |
|
80 | + $transport->setEncryption($mCfg['encrypt']); |
|
81 | + } |
|
80 | 82 | |
81 | 83 | // initialize mailer instance |
82 | 84 | $swift = (new Swift_Mailer($transport)); |
@@ -59,9 +59,12 @@ |
||
59 | 59 | <div class="col-md-9"> |
60 | 60 | <?php if($this->section('body')): ?> |
61 | 61 | <?= $this->section('body') ?> |
62 | - <?php else: ?> |
|
62 | + <?php else { |
|
63 | + : ?> |
|
63 | 64 | <p>Page not found!</p> |
64 | - <?php endif; ?> |
|
65 | + <?php endif; |
|
66 | +} |
|
67 | +?> |
|
65 | 68 | </div> |
66 | 69 | <div class="col-md"> |
67 | 70 | <div class="card"> |