1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-31 10:01:56 +02:00

Fixes #1782 - Menu-Manager list not populating when 'ONLY_FULL_GROUP_BY' is in sql-mode. Active SQL Modes added to the PHPInfo page.

This commit is contained in:
Cameron
2016-08-06 10:52:11 -07:00
parent 2df263a2b2
commit dfd6f9ea13
2 changed files with 16 additions and 3 deletions

View File

@@ -1122,10 +1122,20 @@ class e_menuManager {
$pageMenu = array();
$pluginMenu = array();
$done = array();
$sql->select("menus", "menu_name, menu_id, menu_pages, menu_path", "1 GROUP BY menu_name ORDER BY menu_name ASC");
$sql->select("menus", "menu_name, menu_id, menu_pages, menu_path", "1 ORDER BY menu_name ASC");
while ($row = $sql->fetch())
{
if(in_array($row['menu_name'],$done))
{
continue;
}
$done[] = $row['menu_name'];
if(is_numeric($row['menu_path']))
{
$pageMenu[] = $row;