aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mod/profile/actions/edit.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/mod/profile/actions/edit.php b/mod/profile/actions/edit.php
index 839b269af..34b2dbfd7 100644
--- a/mod/profile/actions/edit.php
+++ b/mod/profile/actions/edit.php
@@ -66,7 +66,7 @@ foreach($CONFIG->profile as $shortname => $valuetype) {
if ($name = strip_tags(get_input('name'))) {
if (elgg_strlen($name) > 50) {
register_error(elgg_echo('user:name:fail'));
- } else {
+ } elseif ($profile_owner->name != $name) {
$profile_owner->name = $name;
// @todo this is weird...giving two notifications?
if ($profile_owner->save()) {