aboutsummaryrefslogtreecommitdiff
path: root/mod/profile/actions/edit.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/profile/actions/edit.php')
-rw-r--r--mod/profile/actions/edit.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/mod/profile/actions/edit.php b/mod/profile/actions/edit.php
index 76ea28159..e7f307756 100644
--- a/mod/profile/actions/edit.php
+++ b/mod/profile/actions/edit.php
@@ -44,7 +44,7 @@
if (isset($accesslevel[$shortname])) {
$access_id = (int) $accesslevel[$shortname];
} else {
- $access_id = 0;
+ $access_id = ACCESS_PRIVATE;
}
if (is_array($value)) {
$i = 0;
@@ -59,10 +59,10 @@
}
$user->save();
-
- // Notify of profile update
- trigger_elgg_event('profileupdate',$user->type,$user);
-
+
+ // Notify of profile update
+ trigger_elgg_event('profileupdate',$user->type,$user);
+
system_message(elgg_echo("profile:saved"));