diff options
| author | 2020-05-30 21:06:46 +0200 | |
|---|---|---|
| committer | 2020-05-30 21:06:46 +0200 | |
| commit | f6bfcba82735f5795da9d0f1e24359fce289f3b5 (patch) | |
| tree | 5f44c1d641f209433d8f4b3805d525db61eb7ff6 | |
| parent | 5910009c212faee64d8d8f18e95854e2313eb49e (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.
| -rw-r--r-- | app/Models/ConfigurationSetter.php | 2 |
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; |
