aboutsummaryrefslogtreecommitdiff
path: root/actions/widgets/save.php
diff options
context:
space:
mode:
Diffstat (limited to 'actions/widgets/save.php')
-rw-r--r--actions/widgets/save.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/actions/widgets/save.php b/actions/widgets/save.php
index 7e9c91dcd..01459f660 100644
--- a/actions/widgets/save.php
+++ b/actions/widgets/save.php
@@ -19,12 +19,14 @@ if (!empty($guid)) {
$result = save_widget_info($guid,$params);
}
+if ($noforward) {
+ exit;
+}
+
if ($result) {
system_message(elgg_echo('widgets:save:success'));
} else {
register_error(elgg_echo('widgets:save:failure'));
}
-if (!$noforward) {
- forward($_SERVER['HTTP_REFERER']);
-}
+forward($_SERVER['HTTP_REFERER']); \ No newline at end of file