user fix for mysql 5.7

Change-Id: I0ce816fcca5697a02d1f87a9833ee310f753e350
Signed-off-by: SJ <sj@acts.hu>
This commit is contained in:
SJ 2016-08-22 18:01:13 +02:00
parent 27a484af3c
commit ffa734572b

View File

@ -244,7 +244,7 @@ class ModelUserUser extends Model {
if($page_len > 0) { $limit = " LIMIT " . (int)$from . ", " . (int)$page_len; }
$query = $this->db->query("SELECT " . TABLE_USER . ".uid, isadmin, username, realname, domain, email FROM " . TABLE_USER . "," . TABLE_EMAIL . " $where_cond group by " . TABLE_USER . ".uid $_order $limit", $q);
$query = $this->db->query("SELECT " . TABLE_USER . ".uid, isadmin, username, realname, domain, MIN(email) FROM " . TABLE_USER . "," . TABLE_EMAIL . " $where_cond GROUP BY " . TABLE_USER . ".uid $_order $limit", $q);
foreach ($query->rows as $q) {