1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-01 20:30:39 +02:00

Fixed db_Fetch to pass MYSQL_NUM following mysql_class.php change (for list() calls)

This commit is contained in:
bugrain
2009-01-21 22:04:36 +00:00
parent 75723b9480
commit 31794e5529

View File

@@ -11,9 +11,9 @@
| GNU General Public License (http://gnu.org). | GNU General Public License (http://gnu.org).
| |
| $Source: /cvs_backup/e107_0.8/e107_admin/menus.php,v $ | $Source: /cvs_backup/e107_0.8/e107_admin/menus.php,v $
| $Revision: 1.12 $ | $Revision: 1.13 $
| $Date: 2008-12-17 20:42:30 $ | $Date: 2009-01-21 22:04:36 $
| $Author: e107steved $ | $Author: bugrain $
+----------------------------------------------------------------------------+ +----------------------------------------------------------------------------+
*/ */
require_once("../class2.php"); require_once("../class2.php");
@@ -361,7 +361,7 @@ if (strpos(e_QUERY, 'configure') === FALSE)
} }
$sql->db_Select("menus", "*", "menu_path NOT REGEXP('[0-9]+') "); $sql->db_Select("menus", "*", "menu_path NOT REGEXP('[0-9]+') ");
while (list($menu_id, $menu_name, $menu_location, $menu_order) = $sql->db_Fetch()) while (list($menu_id, $menu_name, $menu_location, $menu_order) = $sql->db_Fetch(MYSQL_NUM))
{ {
if (stristr($menustr, $menu_name) === FALSE) if (stristr($menustr, $menu_name) === FALSE)
{ {
@@ -602,7 +602,7 @@ function checklayout($str)
$sql9->db_Select("menus", "*", "menu_location='$menu' ORDER BY menu_order"); $sql9->db_Select("menus", "*", "menu_location='$menu' ORDER BY menu_order");
$menu_count = $sql9->db_Rows(); $menu_count = $sql9->db_Rows();
while (list($menu_id, $menu_name, $menu_location, $menu_order, $menu_class, $menu_pages, $menu_path) = $sql9->db_Fetch()) { while (list($menu_id, $menu_name, $menu_location, $menu_order, $menu_class, $menu_pages, $menu_path) = $sql9->db_Fetch(MYSQL_NUM)) {
$menu_name = preg_replace("#_menu#i", "", $menu_name); $menu_name = preg_replace("#_menu#i", "", $menu_name);
$vis = ($menu_class || strlen($menu_pages) > 1) ? " <span style='color:red'>*</span> " : $vis = ($menu_class || strlen($menu_pages) > 1) ? " <span style='color:red'>*</span> " :
""; "";