Commit 5076ad19 authored by Ad Schellevis's avatar Ad Schellevis

dashboard, only unset when set

parent 3ba65be5
......@@ -74,12 +74,12 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
} elseif ($_SERVER['REQUEST_METHOD'] === 'POST') {
if (!empty($_POST['sequence'])) {
$config['widgets']['sequence'] = $_POST['sequence'];
} else {
} elseif (isset($config['widgets']['sequence'])) {
unset($config['widgets']['sequence']);
}
if (!empty($_POST['column_count'])) {
$config['widgets']['column_count'] = $_POST['column_count'];
} else {
} elseif(isset($config['widgets']['column_count'])) {
unset($config['widgets']['column_count']);
}
write_config(gettext('Widget configuration has been changed.'));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment