Skip to content

A free, self-hostable news aggregator…

Fix issue where $keepMax is defaulted to const when non-zero value is compared. (#7416)

Bryan Butler3ec0bdab3840
diff --git a/app/Controllers/categoryController.php b/app/Controllers/categoryController.php
index 9fd5fd630..956a462e1 100644
--- a/app/Controllers/categoryController.php
+++ b/app/Controllers/categoryController.php
@@ -113,7 +113,7 @@ class FreshRSS_category_Controller extends FreshRSS_ActionController {
} else {
if (!Minz_Request::paramBoolean('enable_keep_max')) {
$keepMax = false;
- } elseif (($keepMax = Minz_Request::paramInt('keep_max')) !== 0) {
+ } elseif (($keepMax = Minz_Request::paramInt('keep_max')) === 0) {
$keepMax = FreshRSS_Feed::ARCHIVING_RETENTION_COUNT_LIMIT;
}
if (Minz_Request::paramBoolean('enable_keep_period')) {