From 20633c181f17c8895bd212c265249e9c214e81c0 Mon Sep 17 00:00:00 2001 From: nickw Date: Mon, 24 May 2010 17:27:45 +0000 Subject: Only notifying name change when it actually changed. git-svn-id: http://code.elgg.org/elgg/trunk@6182 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/profile/actions/edit.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mod') 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()) { -- cgit v1.2.3