summaryrefslogtreecommitdiff
path: root/resources
diff options
context:
space:
mode:
Diffstat (limited to 'resources')
-rw-r--r--resources/views/admin/merge-records-step-2.phtml6
-rw-r--r--resources/views/admin/trees-check.phtml2
-rw-r--r--resources/views/modules/clippings/show.phtml2
-rw-r--r--resources/views/modules/gedcom_news/list.phtml2
-rw-r--r--resources/views/modules/gedcom_stats/statistics.phtml2
-rw-r--r--resources/views/modules/media/tab.phtml2
-rw-r--r--resources/views/modules/notes/tab.phtml2
-rw-r--r--resources/views/modules/stories/tab.phtml2
-rw-r--r--resources/views/place-events.phtml8
-rw-r--r--resources/views/repository-page.phtml2
-rw-r--r--resources/views/search-advanced-page.phtml2
-rw-r--r--resources/views/search-general-page.phtml2
-rw-r--r--resources/views/search-phonetic-page.phtml2
-rw-r--r--resources/views/search-results.phtml10
14 files changed, 23 insertions, 23 deletions
diff --git a/resources/views/admin/merge-records-step-2.phtml b/resources/views/admin/merge-records-step-2.phtml
index e7f2375386..d01d61062d 100644
--- a/resources/views/admin/merge-records-step-2.phtml
+++ b/resources/views/admin/merge-records-step-2.phtml
@@ -27,7 +27,7 @@ use Fisharebest\Webtrees\I18N;
</h2>
</div>
<div class="card-body">
- <?php if (!empty($facts)) : ?>
+ <?php if ($facts !== []) : ?>
<table class="table table-bordered table-sm">
<thead>
<tr>
@@ -74,7 +74,7 @@ use Fisharebest\Webtrees\I18N;
</h2>
</div>
<div class="card-body">
- <?php if (!empty($facts1)) : ?>
+ <?php if ($facts1 !== []) : ?>
<table class="table table-bordered table-sm">
<thead>
<tr>
@@ -120,7 +120,7 @@ use Fisharebest\Webtrees\I18N;
</h2>
</div>
<div class="card-body">
- <?php if (!empty($facts2)) : ?>
+ <?php if ($facts2 !== []) : ?>
<table class="table table-bordered table-sm">
<thead>
<tr>
diff --git a/resources/views/admin/trees-check.phtml b/resources/views/admin/trees-check.phtml
index 2632a5c6dd..ecac10b2b8 100644
--- a/resources/views/admin/trees-check.phtml
+++ b/resources/views/admin/trees-check.phtml
@@ -22,7 +22,7 @@ use Fisharebest\Webtrees\I18N;
<li class="list-group-item list-group-item-warning"><?= $warning ?></li>
<?php endforeach ?>
- <?php if (empty($errors) && empty($warnings)) : ?>
+ <?php if ($errors === [] && $warnings === []) : ?>
<li class="list-group-item"><?= I18N::translate('No errors have been found.') ?></li>
<?php endif ?>
</ul>
diff --git a/resources/views/modules/clippings/show.phtml b/resources/views/modules/clippings/show.phtml
index b7a9798fbb..0c0ba3ae3d 100644
--- a/resources/views/modules/clippings/show.phtml
+++ b/resources/views/modules/clippings/show.phtml
@@ -8,7 +8,7 @@ use Fisharebest\Webtrees\I18N; ?>
<?= I18N::translate('The clippings cart allows you to take extracts from this family tree and download them as a GEDCOM file.') ?>
</p>
-<?php if (empty($records)) : ?>
+<?php if ($records === []) : ?>
<p>
<?= I18N::translate('Your clippings cart is empty.') ?>
</p>
diff --git a/resources/views/modules/gedcom_news/list.phtml b/resources/views/modules/gedcom_news/list.phtml
index a6c36462c6..6061e79fd8 100644
--- a/resources/views/modules/gedcom_news/list.phtml
+++ b/resources/views/modules/gedcom_news/list.phtml
@@ -5,7 +5,7 @@ use Fisharebest\Webtrees\I18N;
?>
-<?php if (empty($articles)) : ?>
+<?php if ($articles->isEmpty()) : ?>
<?= I18N::translate('No news articles have been submitted.') ?>
<?php endif ?>
diff --git a/resources/views/modules/gedcom_stats/statistics.phtml b/resources/views/modules/gedcom_stats/statistics.phtml
index 6277320039..15d2a69574 100644
--- a/resources/views/modules/gedcom_stats/statistics.phtml
+++ b/resources/views/modules/gedcom_stats/statistics.phtml
@@ -232,7 +232,7 @@
</div>
</div>
-<?php if (!empty($surnames)) : ?>
+<?php if ($surnames !== '') : ?>
<div class="clearfix">
<p>
<strong>
diff --git a/resources/views/modules/media/tab.phtml b/resources/views/modules/media/tab.phtml
index 3f39ab4b0c..12df6dc1f1 100644
--- a/resources/views/modules/media/tab.phtml
+++ b/resources/views/modules/media/tab.phtml
@@ -10,7 +10,7 @@
<?php FunctionsPrintFacts::printMainMedia($fact, 4) ?>
<?php endforeach ?>
- <?php if (empty($facts)) : ?>
+ <?php if ($facts->isEmpty()) : ?>
<tr>
<td colspan="2">
<?= I18N::translate('There are no media objects for this individual.') ?>
diff --git a/resources/views/modules/notes/tab.phtml b/resources/views/modules/notes/tab.phtml
index 5ee1ebb3cf..7ba1e4e1b8 100644
--- a/resources/views/modules/notes/tab.phtml
+++ b/resources/views/modules/notes/tab.phtml
@@ -25,7 +25,7 @@ use Fisharebest\Webtrees\View;
<?php FunctionsPrintFacts::printMainNotes($fact, 4) ?>
<?php endforeach ?>
- <?php if (empty($facts)) : ?>
+ <?php if ($facts->isEmpty()) : ?>
<tr>
<td colspan="2">
<?= I18N::translate('There are no notes for this individual.') ?>
diff --git a/resources/views/modules/stories/tab.phtml b/resources/views/modules/stories/tab.phtml
index a52f296f98..1305d5a820 100644
--- a/resources/views/modules/stories/tab.phtml
+++ b/resources/views/modules/stories/tab.phtml
@@ -21,7 +21,7 @@ use Fisharebest\Webtrees\I18N;
<?php endif ?>
<?php endforeach ?>
- <?php if ($is_admin && empty($stories)) : ?>
+ <?php if ($is_admin && $stories === []) : ?>
<div>
<a href="<?= e(route('module', ['module' => 'stories', 'action' => 'AdminEdit', 'xref' => $individual->xref(), 'tree' => $tree->name()])) ?>">
<?= I18N::translate('Add a story') ?>
diff --git a/resources/views/place-events.phtml b/resources/views/place-events.phtml
index 37766a0431..90defa7c57 100644
--- a/resources/views/place-events.phtml
+++ b/resources/views/place-events.phtml
@@ -2,13 +2,13 @@
<ul class="nav nav-tabs" role="tablist">
<li class="nav-item">
- <a class="nav-link active<?= empty($indilist) ? ' text-muted' : '' ?>" data-toggle="tab" role="tab" href="#individuals">
+ <a class="nav-link active<?= $indilist === [] ? ' text-muted' : '' ?>" data-toggle="tab" role="tab" href="#individuals">
<?= I18N::translate('Individuals') ?>
<?= view('components/badge', ['count' => count($indilist)]) ?>
</a>
</li>
<li class="nav-item">
- <a class="nav-link<?= empty($famlist) ? ' text-muted' : '' ?>" data-toggle="tab" role="tab" href="#families">
+ <a class="nav-link<?= $famlist === [] ? ' text-muted' : '' ?>" data-toggle="tab" role="tab" href="#families">
<?= I18N::translate('Families') ?>
<?= view('components/badge', ['count' => count($famlist)]) ?>
</a>
@@ -16,7 +16,7 @@
</ul>
<div class="tab-content">
<div class="tab-pane fade show active" role="tabpanel" id="individuals">
- <?php if (empty($indilist)) : ?>
+ <?php if ($indilist === []) : ?>
<p><?= I18N::translate('No results found.') ?></p>
<?php else : ?>
<?= view('lists/individuals-table', [
@@ -28,7 +28,7 @@
</div>
<div class="tab-pane fade" role="tabpanel" id="families">
- <?php if (empty($famlist)) : ?>
+ <?php if ($famlist === []) : ?>
<p><?= I18N::translate('No results found.') ?></p>
<?php else : ?>
<?= view('lists/families-table', ['families' => $famlist, 'tree' => $tree]) ?>
diff --git a/resources/views/repository-page.phtml b/resources/views/repository-page.phtml
index ece5b25199..f5e25faf1d 100644
--- a/resources/views/repository-page.phtml
+++ b/resources/views/repository-page.phtml
@@ -40,7 +40,7 @@ use Fisharebest\Webtrees\I18N;
</a>
</li>
<li class="nav-item">
- <a class="nav-link<?= empty($sources) ? ' text-muted' : '' ?>" data-toggle="tab" role="tab" href="#sources">
+ <a class="nav-link<?= $sources->isEmpty() ? ' text-muted' : '' ?>" data-toggle="tab" role="tab" href="#sources">
<?= I18N::translate('Sources') ?>
<?= view('components/badge', ['count' => count($sources)]) ?>
</a>
diff --git a/resources/views/search-advanced-page.phtml b/resources/views/search-advanced-page.phtml
index 5512e60ae9..a002855cdf 100644
--- a/resources/views/search-advanced-page.phtml
+++ b/resources/views/search-advanced-page.phtml
@@ -76,7 +76,7 @@ use Fisharebest\Webtrees\I18N;
</div>
<?php if (true) : ?>
- <?php if (empty($individuals)) : ?>
+ <?php if ($individuals->isEmpty()) : ?>
<div class="alert alert-info row">
<?= I18N::translate('No results found.') ?>
</div>
diff --git a/resources/views/search-general-page.phtml b/resources/views/search-general-page.phtml
index 2b0af959d9..032d83ec00 100644
--- a/resources/views/search-general-page.phtml
+++ b/resources/views/search-general-page.phtml
@@ -108,7 +108,7 @@ use Fisharebest\Webtrees\I18N;
</form>
<?php if ($query !== '') : ?>
- <?php if (empty($individuals) && empty($families) && empty($repositories) && empty($sources) && empty($notes)) : ?>
+ <?php if ($individuals->isEmpty() && $families->isEmpty() && $repositories->isEmpty() && $sources->isEmpty() && $notes->isEmpty()) : ?>
<div class="alert alert-info row">
<?= I18N::translate('No results found.') ?>
</div>
diff --git a/resources/views/search-phonetic-page.phtml b/resources/views/search-phonetic-page.phtml
index 61e1c66d6f..3ebe495dc4 100644
--- a/resources/views/search-phonetic-page.phtml
+++ b/resources/views/search-phonetic-page.phtml
@@ -109,7 +109,7 @@ use Fisharebest\Webtrees\I18N;
</form>
<?php if ($firstname !== '' || $lastname !== '' || $place !== '') : ?>
- <?php if (empty($individuals)) : ?>
+ <?php if ($individuals->isEmpty()) : ?>
<div class="alert alert-info row">
<?= I18N::translate('No results found.') ?>
</div>
diff --git a/resources/views/search-results.phtml b/resources/views/search-results.phtml
index 8e21ab740f..0a89b35ff1 100644
--- a/resources/views/search-results.phtml
+++ b/resources/views/search-results.phtml
@@ -5,7 +5,7 @@
<ul class="nav nav-tabs wt-search-results-tabs" role="tablist">
<?php if ($search_individuals) : ?>
<li class="nav-item">
- <a class="nav-link <?= empty($individuals) ? 'text-muted' : '' ?>" id="individuals-tab" data-toggle="tab" href="#individuals" role="tab" aria-controls="individuals">
+ <a class="nav-link <?= $individuals->isEmpty() ? 'text-muted' : '' ?>" id="individuals-tab" data-toggle="tab" href="#individuals" role="tab" aria-controls="individuals">
<?= I18N::translate('Individuals') ?>
<span class="badge badge-secondary">
<?= I18N::number(count($individuals)) ?>
@@ -16,7 +16,7 @@
<?php if ($search_families) : ?>
<li class="nav-item">
- <a class="nav-link <?= empty($families) ? 'text-muted' : '' ?>" id="families-tab" data-toggle="tab" href="#families" role="tab" aria-controls="families">
+ <a class="nav-link <?= $families->isEmpty() ? 'text-muted' : '' ?>" id="families-tab" data-toggle="tab" href="#families" role="tab" aria-controls="families">
<?= I18N::translate('Families') ?>
<span class="badge badge-secondary">
<?= I18N::number(count($families)) ?>
@@ -27,7 +27,7 @@
<?php if ($search_sources) : ?>
<li class="nav-item">
- <a class="nav-link <?= empty($sources) ? 'text-muted' : '' ?>" id="sources-tab" data-toggle="tab" href="#sources" role="tab" aria-controls="sources">
+ <a class="nav-link <?= $sources->isEmpty() ? 'text-muted' : '' ?>" id="sources-tab" data-toggle="tab" href="#sources" role="tab" aria-controls="sources">
<?= I18N::translate('Sources') ?>
<span class="badge badge-secondary">
<?= I18N::number(count($sources)) ?>
@@ -38,7 +38,7 @@
<?php if ($search_repositories) : ?>
<li class="nav-item">
- <a class="nav-link <?= empty($repositories) ? 'text-muted' : '' ?>" id="repositories-tab" data-toggle="tab" href="#repositories" role="tab" aria-controls="repositories">
+ <a class="nav-link <?= $repositories->isEmpty() ? 'text-muted' : '' ?>" id="repositories-tab" data-toggle="tab" href="#repositories" role="tab" aria-controls="repositories">
<?= I18N::translate('Repositories') ?>
<span class="badge badge-secondary">
<?= I18N::number(count($repositories)) ?>
@@ -49,7 +49,7 @@
<?php if ($search_notes) : ?>
<li class="nav-item">
- <a class="nav-link <?= empty($notes) ? 'text-muted' : '' ?>" id="notes-tab" data-toggle="tab" href="#notes" role="tab" aria-controls="notes">
+ <a class="nav-link <?= $notes->isEmpty() ? 'text-muted' : '' ?>" id="notes-tab" data-toggle="tab" href="#notes" role="tab" aria-controls="notes">
<?= I18N::translate('Notes') ?>
<span class="badge badge-secondary">
<?= I18N::number(count($notes)) ?>