@@ -304,7 +304,8 @@ discard block |
||
| 304 | 304 | <li class="wt-initials-list-item d-flex"> |
| 305 | 305 | <?php if ($count > 0) : ?> |
| 306 | 306 | <a href="<?= e($this->listUrl($tree, ['alpha' => $letter, 'show_marnm' => $show_marnm, 'tree' => $tree->name()])) ?>" class="wt-initial px-1<?= $letter === $alpha ? ' active' : '' ?> '" title="<?= I18N::number($count) ?>"><?= $this->displaySurnameInitial((string) $letter) ?></a> |
| 307 | - <?php else : ?> |
|
| 307 | + <?php else { |
|
| 308 | + : ?> |
|
| 308 | 309 | <span class="wt-initial px-1 text-muted"><?= $this->displaySurnameInitial((string) $letter) ?></span> |
| 309 | 310 | |
| 310 | 311 | <?php endif ?> |
@@ -359,6 +360,7 @@ discard block |
||
| 359 | 360 | switch ($alpha) { |
| 360 | 361 | case '@': |
| 361 | 362 | $filter = static fn (string $x): bool => $x === Individual::NOMEN_NESCIO; |
| 363 | +} |
|
| 362 | 364 | break; |
| 363 | 365 | case ',': |
| 364 | 366 | $filter = static fn (string $x): bool => $x === ''; |
@@ -321,7 +321,7 @@ |
||
| 321 | 321 | } |
| 322 | 322 | |
| 323 | 323 | // Remove links to missing and private records |
| 324 | - $pattern = '/\n(\d) ' . Gedcom::REGEX_TAG . ' @(' . Gedcom::REGEX_XREF . ')@/'; |
|
| 324 | + $pattern = '/\n(\d) ' . Gedcom::REGEX_TAG . ' @(' . Gedcom::REGEX_XREF . ')@/'; |
|
| 325 | 325 | preg_match_all($pattern, $gedcom, $matches, PREG_SET_ORDER); |
| 326 | 326 | |
| 327 | 327 | foreach ($matches as $match) { |
@@ -90,7 +90,7 @@ |
||
| 90 | 90 | |
| 91 | 91 | // Only update session once a minute to reduce contention on the session table. |
| 92 | 92 | if (date('Y-m-d H:i:s', time() - 60) > $this->row->session_time) { |
| 93 | - $updates['session_time'] = date('Y-m-d H:i:s'); |
|
| 93 | + $updates['session_time'] = date('Y-m-d H:i:s'); |
|
| 94 | 94 | } |
| 95 | 95 | |
| 96 | 96 | if ($updates !== []) { |