mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 03:40:37 +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:
@@ -1059,6 +1059,8 @@ class admin_shortcodes
|
||||
|
||||
$text .= $themeinfo ? "<br />".FOOTLAN_7.": ".$themeinfo : '';
|
||||
|
||||
$sqlMode = str_replace(",", ", ",e107::getDB()->getMode());
|
||||
|
||||
$text .= "<br /><br />
|
||||
<b>".FOOTLAN_8."</b>
|
||||
<br />
|
||||
@@ -1075,8 +1077,9 @@ class admin_shortcodes
|
||||
<b>".FOOTLAN_12."</b>
|
||||
<br />
|
||||
".e107::getDB()->getServerInfo(). // mySqlServerInfo.
|
||||
"<br />
|
||||
".FOOTLAN_16.": ".$mySQLdefaultdb."
|
||||
|
||||
"<br />".FOOTLAN_16.": ".$mySQLdefaultdb."
|
||||
<br />Mode: <small>".$sqlMode."</small>
|
||||
<br /><br />
|
||||
<b>".FOOTLAN_17."</b>
|
||||
<br />utf-8
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user