aboutsummaryrefslogtreecommitdiff
path: root/mod/profile
diff options
context:
space:
mode:
Diffstat (limited to 'mod/profile')
-rw-r--r--mod/profile/actions/edit.php10
-rw-r--r--mod/profile/views/default/profile/edit.php2
2 files changed, 6 insertions, 6 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"));
diff --git a/mod/profile/views/default/profile/edit.php b/mod/profile/views/default/profile/edit.php
index c81e023b0..baa843c8e 100644
--- a/mod/profile/views/default/profile/edit.php
+++ b/mod/profile/views/default/profile/edit.php
@@ -36,7 +36,7 @@
}
} else {
$value = '';
- $access_id = 1;
+ $access_id = ACCESS_LOGGED_IN;
}
?>