MDL-30370 mod_forum - Removing duplicate seleted field in the DB query
authorDavid Monllao <davidm@moodle.com>
Wed, 15 Aug 2012 08:56:06 +0000 (16:56 +0800)
committerDavid Monllao <davidm@moodle.com>
Wed, 15 Aug 2012 09:03:07 +0000 (17:03 +0800)
Credit to IƱigo Zendegi

mod/forum/lib.php

index 921465c..995226a 100644 (file)
@@ -2090,8 +2090,7 @@ function forum_search_posts($searchterms, $courseid=0, $limitfrom=0, $limitnum=5
                          u.lastname,
                          u.email,
                          u.picture,
-                         u.imagealt,
-                         u.email
+                         u.imagealt
                     FROM $fromsql
                    WHERE $selectsql
                 ORDER BY p.modified DESC";