@@ -128,7 +128,8 @@ discard block |
||
| 128 | 128 | <div class="form-control"><?= Filter::escapeHtml(Auth::user()->getRealName()) ?></div> |
| 129 | 129 | </div> |
| 130 | 130 | </div> |
| 131 | - <?php else: ?> |
|
| 131 | + <?php else { |
|
| 132 | + : ?> |
|
| 132 | 133 | <div class="form-group row"> |
| 133 | 134 | <label class="col-sm-3 col-form-label" for="from-name"> |
| 134 | 135 | <?= I18N::translate('Your name') ?> |
@@ -186,6 +187,7 @@ discard block |
||
| 186 | 187 | function recipients($to) { |
| 187 | 188 | if ($to === 'all') { |
| 188 | 189 | $recipients = User::all(); |
| 190 | +} |
|
| 189 | 191 | } elseif ($to === 'last_6mo') { |
| 190 | 192 | $recipients = array_filter(User::all(), function(User $user) { |
| 191 | 193 | return $user->getPreference('sessiontime') > 0 && WT_TIMESTAMP - $user->getPreference('sessiontime') > 60 * 60 * 24 * 30 * 6; |