projects
/
platal.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9b66c71
)
Compares last and first names to their previous values instead of the initial value...
author
Stéphane Jacob
<sj@m4x.org>
Fri, 18 Jun 2010 20:35:58 +0000
(22:35 +0200)
committer
Stéphane Jacob
<sj@m4x.org>
Fri, 18 Jun 2010 20:35:58 +0000
(22:35 +0200)
Signed-off-by: Stéphane Jacob <sj@m4x.org>
modules/profile/general.inc.php
patch
|
blob
|
blame
|
history
diff --git
a/modules/profile/general.inc.php
b/modules/profile/general.inc.php
index
470d7ec
..
ffdea4e
100644
(file)
--- 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();