diff --git a/src/www/index.php b/src/www/index.php index a0f56270e..43444d5cd 100644 --- a/src/www/index.php +++ b/src/www/index.php @@ -70,7 +70,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') { usort($widgetCollection, function ($item1, $item2) { return strcmp(strtolower($item1['sortKey']), strtolower($item2['sortKey'])); }); -} elseif ($_SERVER['REQUEST_METHOD'] === 'POST') { +} elseif ($_SERVER['REQUEST_METHOD'] === 'POST' && !empty($_POST['origin']) && $_POST['origin'] == 'dashboard') { if (!empty($_POST['sequence'])) { $config['widgets']['sequence'] = $_POST['sequence']; } elseif (isset($config['widgets']['sequence'])) { @@ -322,6 +322,7 @@ include("fbegin.inc");?>
+