aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2025-05-25 13:05:23 +0200
committerGravatar GitHub <noreply@github.com> 2025-05-25 13:05:23 +0200
commit62592da2837d21b84a4dc53272030d2a0df90224 (patch)
treebd3be21e9063d020916d0ad1466f1b63c44a9ed1 /app
parentee7538d4e9e3cba743020b03abf6cfbac05a7661 (diff)
Fix remove last share (#7613)
fix https://github.com/FreshRSS/FreshRSS/issues/7612
Diffstat (limited to 'app')
-rw-r--r--app/Controllers/configureController.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Controllers/configureController.php b/app/Controllers/configureController.php
index d502ca717..4f448c5e0 100644
--- a/app/Controllers/configureController.php
+++ b/app/Controllers/configureController.php
@@ -178,7 +178,7 @@ class FreshRSS_configure_Controller extends FreshRSS_ActionController {
FreshRSS_View::appendScript(Minz_Url::display('/scripts/draggable.js?' . @filemtime(PUBLIC_PATH . '/scripts/draggable.js')));
if (Minz_Request::isPost()) {
- $share = $_POST['share'] ?? null;
+ $share = $_POST['share'] ?? [];
if (is_array($share)) {
$share = array_filter($share, fn($value, $key): bool =>
is_int($key) && is_array($value) &&