From 3623a5421df8198651d8e8a9d676f0661c307cf9 Mon Sep 17 00:00:00 2001 From: maTh Date: Tue, 19 Oct 2021 15:08:32 +0200 Subject: enhancement subscription management page (#3893) * wip * wip2 * i18n * Update app/views/helpers/category/update.phtml Co-authored-by: Frans de Jonge * fixed box layout * Revert "i18n" This reverts commit a2e4d8ace661df806997a8310f069a67d71910f4. * i18n This reverts commit 55236930cfc7165ff883ea2a9538d3502b8922eb. Co-authored-by: Frans de Jonge --- app/Controllers/subscriptionController.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'app/Controllers/subscriptionController.php') diff --git a/app/Controllers/subscriptionController.php b/app/Controllers/subscriptionController.php index 4bb08f495..5a89d0e08 100644 --- a/app/Controllers/subscriptionController.php +++ b/app/Controllers/subscriptionController.php @@ -21,6 +21,21 @@ class FreshRSS_subscription_Controller extends Minz_ActionController { $feedDAO->updateTTL(); $this->view->categories = $catDAO->listSortedCategories(false); $this->view->default_category = $catDAO->getDefault(); + + $signalError = false; + foreach ($this->view->categories as $cat) { + $feeds = $cat->feeds(); + foreach ($feeds as $feed) { + if ($feed->inError()) { + $signalError = true; + } + } + if ($signalError) { + break; + } + } + + $this->view->signalError = $signalError; } /** -- cgit v1.2.3