From 0c2c36ff3b0329ff849930d0403f933653a84dcd Mon Sep 17 00:00:00 2001 From: brettp Date: Fri, 14 May 2010 20:50:34 +0000 Subject: Merged 5928-6908 from 1.7 branch to trunk. git-svn-id: http://code.elgg.org/elgg/trunk@6059 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/profile/actions/edit.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'mod/profile/actions') diff --git a/mod/profile/actions/edit.php b/mod/profile/actions/edit.php index baeb49108..839b269af 100644 --- a/mod/profile/actions/edit.php +++ b/mod/profile/actions/edit.php @@ -104,8 +104,10 @@ if (sizeof($input) > 0) { // Notify of profile update trigger_elgg_event('profileupdate',$user->type,$user); - //add to river - add_to_river('river/user/default/profileupdate','update',$_SESSION['user']->guid,$_SESSION['user']->guid,get_default_access($_SESSION['user'])); + //add to river if edited by self + if (get_loggedin_userid() == $user->guid) { + add_to_river('river/user/default/profileupdate','update',$_SESSION['user']->guid,$_SESSION['user']->guid,get_default_access($_SESSION['user'])); + } system_message(elgg_echo("profile:saved")); } -- cgit v1.2.3