aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornickw <nickw@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-05-24 17:27:45 +0000
committernickw <nickw@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-05-24 17:27:45 +0000
commit20633c181f17c8895bd212c265249e9c214e81c0 (patch)
tree82d2d812874c771e967e8230ab98bd5701affc62
parentdbb280602eec2f72e0e9bc6bb7e4594561271346 (diff)
downloadelgg-20633c181f17c8895bd212c265249e9c214e81c0.tar.gz
elgg-20633c181f17c8895bd212c265249e9c214e81c0.tar.bz2
Only notifying name change when it actually changed.
git-svn-id: http://code.elgg.org/elgg/trunk@6182 36083f99-b078-4883-b0ff-0f9b5a30f544
-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()) {