aboutsummaryrefslogtreecommitdiff
path: root/app/views/helpers/feed/update.phtml
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2024-12-10 13:59:56 +0100
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2024-12-10 13:59:56 +0100
commit052261bb8efbb910cefbf82fa54c64f54ba79854 (patch)
treebed801415d8c7f33f82791efd62b5030baeee0b6 /app/views/helpers/feed/update.phtml
parent33fd07f6f26310d4806077cc87bcdf9b8b940e35 (diff)
Fix string condition
Follow-up of https://github.com/FreshRSS/FreshRSS/commit/33fd07f6f26310d4806077cc87bcdf9b8b940e35 , which should have been a PR
Diffstat (limited to 'app/views/helpers/feed/update.phtml')
-rw-r--r--app/views/helpers/feed/update.phtml4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/views/helpers/feed/update.phtml b/app/views/helpers/feed/update.phtml
index f58d46d0f..c73987e50 100644
--- a/app/views/helpers/feed/update.phtml
+++ b/app/views/helpers/feed/update.phtml
@@ -667,7 +667,9 @@
<textarea class="w100" id="path_entries_condition" name="path_entries_condition"
rows="3" cols="64" spellcheck="false" placeholder="<?= _t('gen.short.blank_to_disable') ?>"><?php
foreach ($this->feed->attributeArray('path_entries_condition') ?? [] as $condition) {
- echo htmlspecialchars($condition, ENT_NOQUOTES, 'UTF-8'), PHP_EOL;
+ if (is_string($condition)) {
+ echo htmlspecialchars($condition, ENT_NOQUOTES, 'UTF-8'), PHP_EOL;
+ }
}
?></textarea>
<p class="help"><?= _i('help') ?> <?= _t('sub.feed.filteractions.help') ?></p>