Changeset View
Changeset View
Standalone View
Standalone View
core/units/user_profile/user_profile_eh.php
Show All 39 Lines | |||||
* | * | ||||
* @param kEvent $event | * @param kEvent $event | ||||
* @return void | * @return void | ||||
* @access protected | * @access protected | ||||
*/ | */ | ||||
protected function OnUpdate(kEvent $event) | protected function OnUpdate(kEvent $event) | ||||
{ | { | ||||
$items_info = $this->Application->GetVar($event->getPrefixSpecial(true)); | $items_info = $this->Application->GetVar($event->getPrefixSpecial(true)); | ||||
list ($user_id, $field_values) = each($items_info); | $user_id = key($items_info); | ||||
$field_values = $items_info[$user_id]; | |||||
if ($user_id != $this->Application->RecallVar('user_id')) { | if ($user_id != $this->Application->RecallVar('user_id')) { | ||||
// we are not updating own profile | // we are not updating own profile | ||||
return ; | return ; | ||||
} | } | ||||
$public_profile_add = Array (); | $public_profile_add = Array (); | ||||
$public_profile_remove = Array (); | $public_profile_remove = Array (); | ||||
▲ Show 20 Lines • Show All 64 Lines • Show Last 20 Lines |