From ca42b0b8cc239935923ca66bcf95061cddade476 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Wed, 8 Jan 2025 14:44:25 +0100 Subject: Fix sharing integration (#7198) fix https://github.com/FreshRSS/FreshRSS/issues/7192 --- app/Controllers/configureController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/Controllers') diff --git a/app/Controllers/configureController.php b/app/Controllers/configureController.php index 5a60daa55..e66898ff0 100644 --- a/app/Controllers/configureController.php +++ b/app/Controllers/configureController.php @@ -179,10 +179,10 @@ class FreshRSS_configure_Controller extends FreshRSS_ActionController { $share = $_POST['share'] ?? null; if (is_array($share)) { $share = array_filter($share, fn($value, $key): bool => - is_string($key) && is_array($value) && + is_int($key) && is_array($value) && is_array_values_string($value), ARRAY_FILTER_USE_BOTH); - /** @var array> $share */ + /** @var array> $share */ FreshRSS_Context::userConf()->sharing = $share; FreshRSS_Context::userConf()->save(); invalidateHttpCache(); -- cgit v1.2.3