From: Stéphane Jacob Date: Wed, 16 Feb 2011 21:28:53 +0000 (+0100) Subject: Fixes wrong call to page owner. X-Git-Tag: xorg/1.1.0~1^2~20 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=43b60c21cde69466858dea4693e8adba9dc9673d;p=platal.git Fixes wrong call to page owner. Signed-off-by: Stéphane Jacob --- diff --git a/modules/profile/general.inc.php b/modules/profile/general.inc.php index 8a03a47..8453ae0 100644 --- a/modules/profile/general.inc.php +++ b/modules/profile/general.inc.php @@ -149,7 +149,7 @@ class ProfileSettingSearchNames implements ProfileSetting $this->search_names = array(); foreach ($value as &$sn) { $sn['name'] = trim($sn['name']); - if (S::user()->isMe($this->owner) && ($sn['type'] == 'firstname' || $sn['type'] == 'lastname')) { + if (S::user()->isMe($page->owner) && ($sn['type'] == 'firstname' || $sn['type'] == 'lastname')) { $sn['name'] = $this->prepare($page, $sn['type'], $sn['name'], $initial[$sn['type']], $success_tmp); $success = $success && $success_tmp;