projects
/
platal.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c8763ca
)
Fixes an erroneaous SQL query.
author
Stéphane Jacob
<sj@m4x.org>
Mon, 1 Mar 2010 14:02:58 +0000
(15:02 +0100)
committer
Stéphane Jacob
<sj@m4x.org>
Mon, 1 Mar 2010 14:02:58 +0000
(15:02 +0100)
Signed-off-by: Stéphane Jacob <sj@m4x.org>
modules/marketing.php
patch
|
blob
|
blame
|
history
diff --git
a/modules/marketing.php
b/modules/marketing.php
index
ae7fc5d
..
5068fd4
100644
(file)
--- a/
modules/marketing.php
+++ b/
modules/marketing.php
@@
-123,8
+123,8
@@
class MarketingModule extends PLModule
$res = XDB::iterator(
"SELECT r.*, a.alias
FROM register_marketing AS r
- LEFT JOIN aliases AS a ON (r.sender
=
a.uid AND a.type = 'a_vie')
- WHERE
uid=
{?}
+ LEFT JOIN aliases AS a ON (r.sender
=
a.uid AND a.type = 'a_vie')
+ WHERE
r.uid =
{?}
ORDER BY date", $user->id());
$page->assign('addr', $res);