db_query_range not being properly called in install_menu_get_item

hadsie - October 22, 2009 - 04:44
Project:Install Profile API
Version:6.x-2.1
Component:CRUD functions and includes
Category:bug report
Priority:normal
Assigned:Unassigned
Status:needs review
Description

in core/menu.inc, install_menu_get_item() is calling db_query_range as follows:

return db_fetch_array(db_query_range("SELECT * FROM {menu_links} WHERE mlid = %d", $mlid));

This has no $count or $from parameters causing the function to return NULL. The attached patch fixes this.

AttachmentSize
install_menu_query_range.patch477 bytes
 
 

Drupal is a registered trademark of Dries Buytaert.