Fixes SQL error.
authorStéphane Jacob <sj@m4x.org>
Wed, 29 Jun 2011 17:45:39 +0000 (19:45 +0200)
committerStéphane Jacob <sj@m4x.org>
Wed, 29 Jun 2011 17:45:39 +0000 (19:45 +0200)
Signed-off-by: Stéphane Jacob <sj@m4x.org>
modules/admin.php

index b9e9b18..ad07d0e 100644 (file)
@@ -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();