diff options
Diffstat (limited to 'actions')
-rw-r--r-- | actions/widgets/save.php | 8 |
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 |