mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 03:40:37 +02:00
Fixed db_Fetch to pass MYSQL_NUM following mysql_class.php change (for list() calls)
This commit is contained in:
@@ -11,9 +11,9 @@
|
||||
| GNU General Public License (http://gnu.org).
|
||||
|
|
||||
| $Source: /cvs_backup/e107_0.8/e107_admin/menus.php,v $
|
||||
| $Revision: 1.12 $
|
||||
| $Date: 2008-12-17 20:42:30 $
|
||||
| $Author: e107steved $
|
||||
| $Revision: 1.13 $
|
||||
| $Date: 2009-01-21 22:04:36 $
|
||||
| $Author: bugrain $
|
||||
+----------------------------------------------------------------------------+
|
||||
*/
|
||||
require_once("../class2.php");
|
||||
@@ -361,7 +361,7 @@ if (strpos(e_QUERY, 'configure') === FALSE)
|
||||
}
|
||||
|
||||
$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)
|
||||
{
|
||||
@@ -602,7 +602,7 @@ function checklayout($str)
|
||||
|
||||
$sql9->db_Select("menus", "*", "menu_location='$menu' ORDER BY menu_order");
|
||||
$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);
|
||||
$vis = ($menu_class || strlen($menu_pages) > 1) ? " <span style='color:red'>*</span> " :
|
||||
"";
|
||||
|
Reference in New Issue
Block a user