summaryrefslogtreecommitdiff
path: root/resources/views/modules
diff options
context:
space:
mode:
Diffstat (limited to 'resources/views/modules')
-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
6 files changed, 6 insertions, 6 deletions
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') ?>