aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
Diffstat (limited to 'engine')
-rw-r--r--engine/lib/widgets.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/engine/lib/widgets.php b/engine/lib/widgets.php
index 85348a4f8..171d4928e 100644
--- a/engine/lib/widgets.php
+++ b/engine/lib/widgets.php
@@ -383,8 +383,13 @@
$dbwidget->column = $col;
$dbwidget->order = $pos;
} else {
- if (!$dbwidget->delete())
+ $dbguid = $dbwidget->getGUID();
+ if (!$dbwidget->delete()) {
$return = false;
+ } else {
+ // Remove state cookie
+ setcookie('widget' + $dbquid, null);
+ }
}
}