aboutsummaryrefslogtreecommitdiff
path: root/app/Models/ConfigurationSetter.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2020-05-30 21:06:46 +0200
committerGravatar GitHub <noreply@github.com> 2020-05-30 21:06:46 +0200
commitf6bfcba82735f5795da9d0f1e24359fce289f3b5 (patch)
tree5f44c1d641f209433d8f4b3805d525db61eb7ff6 /app/Models/ConfigurationSetter.php
parent5910009c212faee64d8d8f18e95854e2313eb49e (diff)
Fix display_categories upgrade from 1.16.0 (#3018)
* Fix display_categories upgrade from 1.16.0 #fix https://github.com/FreshRSS/FreshRSS/issues/3017 The property `'display_categories' => boolean,` in 1.16.0 is not properly converted to `'display_categories' => 'string',` in 1.16.1 due to a weak type comparison bug.
Diffstat (limited to 'app/Models/ConfigurationSetter.php')
-rw-r--r--app/Models/ConfigurationSetter.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Models/ConfigurationSetter.php b/app/Models/ConfigurationSetter.php
index 0026ae5b2..e6bcec54c 100644
--- a/app/Models/ConfigurationSetter.php
+++ b/app/Models/ConfigurationSetter.php
@@ -183,7 +183,7 @@ class FreshRSS_ConfigurationSetter {
}
private function _display_categories(&$data, $value) {
- if (!in_array($value, [ 'active', 'all', 'none' ])) {
+ if (!in_array($value, [ 'active', 'all', 'none' ], true)) {
$value = $value === true ? 'all' : 'active';
}
$data['display_categories'] = $value;