From: Stéphane Jacob Date: Fri, 18 Jun 2010 20:35:58 +0000 (+0200) Subject: Compares last and first names to their previous values instead of the initial value... X-Git-Tag: xorg/1.0.0~122 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=2fa91df015ff50e6aff218d9953233594c54ebde;p=platal.git Compares last and first names to their previous values instead of the initial value (Closes #1067). Signed-off-by: Stéphane Jacob --- diff --git a/modules/profile/general.inc.php b/modules/profile/general.inc.php index 470d7ec..ffdea4e 100644 --- a/modules/profile/general.inc.php +++ b/modules/profile/general.inc.php @@ -136,8 +136,8 @@ class ProfileSettingSearchNames implements ProfileSetting $res = XDB::query("SELECT s.particle, s.name FROM profile_name AS s INNER JOIN profile_name_enum AS e ON (e.id = s.typeid) - WHERE s.pid = {?} AND e.type LIKE '%ini' - ORDER BY e.type = 'firstname_ini'", + WHERE s.pid = {?} AND (e.type = 'lastname' OR e.type = 'firstname') + ORDER BY e.type = 'firstname'", $page->pid()); $res = $res->fetchAllAssoc(); $initial = array();