fix: MySQL 5.7 incompatibility

This commit is contained in:
Martin Ambrus
2017-11-25 01:46:33 +01:00
parent e2ad6d3c2b
commit 687dca4cec
+1 -1
View File
@@ -4993,7 +4993,7 @@ References: User ID/Message ID, Mode
}
}
$q = "SELECT CONCAT(type, \"=\", Count(type)) FROM " . TB_PREFIX . "bdata where wid = $wid and type IN(".implode(', ', $type).") and master = 0";
$q = "SELECT CONCAT(type, \"=\", Count(type)) FROM " . TB_PREFIX . "bdata where wid = $wid and type IN(".implode(', ', $type).") and master = 0 GROUP BY type";
$result = mysqli_query($this->dblink, $q);
$newresult = [];