aboutsummaryrefslogtreecommitdiff
path: root/app/Controllers/subscriptionController.php
diff options
context:
space:
mode:
authorGravatar maTh <math-home@web.de> 2021-10-19 15:08:32 +0200
committerGravatar GitHub <noreply@github.com> 2021-10-19 15:08:32 +0200
commit3623a5421df8198651d8e8a9d676f0661c307cf9 (patch)
tree10cb0ddf512aa09a3a8be6c186a1447dca517e9b /app/Controllers/subscriptionController.php
parent77e21cb41fe1f2a7a9dc8563b3bfb21fc3262d1a (diff)
enhancement subscription management page (#3893)
* wip * wip2 * i18n * Update app/views/helpers/category/update.phtml Co-authored-by: Frans de Jonge <fransdejonge@gmail.com> * fixed box layout * Revert "i18n" This reverts commit a2e4d8ace661df806997a8310f069a67d71910f4. * i18n This reverts commit 55236930cfc7165ff883ea2a9538d3502b8922eb. Co-authored-by: Frans de Jonge <fransdejonge@gmail.com>
Diffstat (limited to 'app/Controllers/subscriptionController.php')
-rw-r--r--app/Controllers/subscriptionController.php15
1 files changed, 15 insertions, 0 deletions
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;
}
/**