From ffa734572b125ee564fa8e6d44d81779eca6274c Mon Sep 17 00:00:00 2001 From: SJ Date: Mon, 22 Aug 2016 18:01:13 +0200 Subject: [PATCH] user fix for mysql 5.7 Change-Id: I0ce816fcca5697a02d1f87a9833ee310f753e350 Signed-off-by: SJ --- webui/model/user/user.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webui/model/user/user.php b/webui/model/user/user.php index 36bff479..c66c228b 100644 --- a/webui/model/user/user.php +++ b/webui/model/user/user.php @@ -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) {