summaryrefslogtreecommitdiff
path: root/app/Controllers/configureController.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2025-01-08 14:44:25 +0100
committerGravatar GitHub <noreply@github.com> 2025-01-08 14:44:25 +0100
commitca42b0b8cc239935923ca66bcf95061cddade476 (patch)
treee54b6aa9f97d93d623320a93a9ff2a460fe071cf /app/Controllers/configureController.php
parent50adb559823f935582f3ed308b8d4352c5f216ed (diff)
Fix sharing integration (#7198)
fix https://github.com/FreshRSS/FreshRSS/issues/7192
Diffstat (limited to 'app/Controllers/configureController.php')
-rw-r--r--app/Controllers/configureController.php4
1 files changed, 2 insertions, 2 deletions
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<string,array<string,string>> $share */
+ /** @var array<int,array<string,string>> $share */
FreshRSS_Context::userConf()->sharing = $share;
FreshRSS_Context::userConf()->save();
invalidateHttpCache();