diff options
author | Dries Buytaert <dries@buytaert.net> | 2007-08-12 15:55:36 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2007-08-12 15:55:36 +0000 |
commit | b134b023e11902ceae12f3ab861da1f0a2fdbdbd (patch) | |
tree | fc0f0be2b23f047dd692e615e3671318f6d60f4d /includes/menu.inc | |
parent | 4e6068baf2c4dcb776efbdeb16621ffbdfa42c0f (diff) | |
download | brdo-b134b023e11902ceae12f3ab861da1f0a2fdbdbd.tar.gz brdo-b134b023e11902ceae12f3ab861da1f0a2fdbdbd.tar.bz2 |
- Patch #163191 by hswong3i: removed db_num_rows() for compatibility with Oracle and DB2. Also a performance improvement.
Diffstat (limited to 'includes/menu.inc')
-rw-r--r-- | includes/menu.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/menu.inc b/includes/menu.inc index 373715533..624ee923b 100644 --- a/includes/menu.inc +++ b/includes/menu.inc @@ -724,7 +724,7 @@ function menu_tree_page_data($menu_name = 'navigation') { $args[] = $item['mlid']; } $placeholders = implode(', ', array_fill(0, count($args), '%d')); - } while (db_num_rows($result)); + } while ($item); } array_unshift($args, $menu_name); } |