mirror of
https://github.com/e107inc/e107.git
synced 2025-08-03 05:07:27 +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 : '';
|
$text .= $themeinfo ? "<br />".FOOTLAN_7.": ".$themeinfo : '';
|
||||||
|
|
||||||
|
$sqlMode = str_replace(",", ", ",e107::getDB()->getMode());
|
||||||
|
|
||||||
$text .= "<br /><br />
|
$text .= "<br /><br />
|
||||||
<b>".FOOTLAN_8."</b>
|
<b>".FOOTLAN_8."</b>
|
||||||
<br />
|
<br />
|
||||||
@@ -1075,8 +1077,9 @@ class admin_shortcodes
|
|||||||
<b>".FOOTLAN_12."</b>
|
<b>".FOOTLAN_12."</b>
|
||||||
<br />
|
<br />
|
||||||
".e107::getDB()->getServerInfo(). // mySqlServerInfo.
|
".e107::getDB()->getServerInfo(). // mySqlServerInfo.
|
||||||
"<br />
|
|
||||||
".FOOTLAN_16.": ".$mySQLdefaultdb."
|
"<br />".FOOTLAN_16.": ".$mySQLdefaultdb."
|
||||||
|
<br />Mode: <small>".$sqlMode."</small>
|
||||||
<br /><br />
|
<br /><br />
|
||||||
<b>".FOOTLAN_17."</b>
|
<b>".FOOTLAN_17."</b>
|
||||||
<br />utf-8
|
<br />utf-8
|
||||||
|
@@ -1122,10 +1122,20 @@ class e_menuManager {
|
|||||||
|
|
||||||
$pageMenu = array();
|
$pageMenu = array();
|
||||||
$pluginMenu = 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())
|
while ($row = $sql->fetch())
|
||||||
{
|
{
|
||||||
|
|
||||||
|
if(in_array($row['menu_name'],$done))
|
||||||
|
{
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
$done[] = $row['menu_name'];
|
||||||
|
|
||||||
if(is_numeric($row['menu_path']))
|
if(is_numeric($row['menu_path']))
|
||||||
{
|
{
|
||||||
$pageMenu[] = $row;
|
$pageMenu[] = $row;
|
||||||
|
Reference in New Issue
Block a user