From 9082ac5ff97d3f2ed0cf4c428c5e5cfccfef6624 Mon Sep 17 00:00:00 2001 From: =?utf8?q?St=C3=A9phane=20Jacob?= Date: Mon, 1 Mar 2010 15:02:58 +0100 Subject: [PATCH] Fixes an erroneaous SQL query. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Stéphane Jacob --- modules/marketing.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/marketing.php b/modules/marketing.php index ae7fc5d..5068fd4 100644 --- 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); -- 2.1.4