From 2fa91df015ff50e6aff218d9953233594c54ebde Mon Sep 17 00:00:00 2001 From: =?utf8?q?St=C3=A9phane=20Jacob?= Date: Fri, 18 Jun 2010 22:35:58 +0200 Subject: [PATCH] Compares last and first names to their previous values instead of the initial value (Closes #1067). MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Stéphane Jacob --- modules/profile/general.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(); -- 2.1.4