From: Stéphane Jacob Date: Wed, 29 Jun 2011 17:45:39 +0000 (+0200) Subject: Fixes SQL error. X-Git-Tag: xorg/1.1.3~2^2~11 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=e26ac9a373ea41dd3bbeb9bc112ef994a7ff8eb4;p=platal.git Fixes SQL error. Signed-off-by: Stéphane Jacob --- diff --git a/modules/admin.php b/modules/admin.php index b9e9b18..ad07d0e 100644 --- a/modules/admin.php +++ b/modules/admin.php @@ -1988,7 +1988,8 @@ class AdminModule extends PLModule XDB::execute('INSERT INTO profile_education (id, pid, eduid, degreeid, entry_year, grad_year, promo_year, flags) SELECT ' . $select . ' FROM profile_education - WHERE pid = {?}', + WHERE pid = {?} + GROUP BY pid', $pid); } XDB::commit();