aboutsummaryrefslogtreecommitdiff
path: root/actions
diff options
context:
space:
mode:
Diffstat (limited to 'actions')
-rw-r--r--actions/admin/site/update_basic.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/actions/admin/site/update_basic.php b/actions/admin/site/update_basic.php
index d45e54e76..d86ec9981 100644
--- a/actions/admin/site/update_basic.php
+++ b/actions/admin/site/update_basic.php
@@ -44,8 +44,10 @@
unset_config('debug', $site->getGUID());
- $site->save();
- system_message(elgg_echo("admin:configuration:success"));
+ if ($site->save())
+ system_message(elgg_echo("admin:configuration:success"));
+ else
+ register_error(elgg_echo("admin:configuration:fail"));
header("Location: {$CONFIG->wwwroot}admin/site/");
exit;