projects
/
platal.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ab06182
)
Fixes homonyms admin
author
Pascal Corpet
<pascal.corpet@m4x.org>
Tue, 15 Jun 2010 20:38:54 +0000
(22:38 +0200)
committer
Pascal Corpet
<pascal.corpet@m4x.org>
Tue, 15 Jun 2010 20:38:54 +0000
(22:38 +0200)
modules/admin.php
patch
|
blob
|
blame
|
history
diff --git
a/modules/admin.php
b/modules/admin.php
index
891602a
..
11aa7f6
100644
(file)
--- a/
modules/admin.php
+++ b/
modules/admin.php
@@
-853,8
+853,8
@@
class AdminModule extends PLModule
if ($op == 'list') {
$res = XDB::iterator(
"SELECT a.alias AS homonyme, s.alias AS forlife,
- IF(h.homonyme_id = s.id, a.expire, NULL) AS expire,
- IF(h.homonyme_id = s.id, a.type, NULL) AS type, ac.uid
+ IF(h.homonyme_id = s.
u
id, a.expire, NULL) AS expire,
+ IF(h.homonyme_id = s.
u
id, a.type, NULL) AS type, ac.uid
FROM aliases AS a
LEFT JOIN homonyms AS h ON (h.homonyme_id = a.uid)
INNER JOIN aliases AS s ON (s.uid = h.uid AND s.type = 'a_vie')