Index: includes/menu.inc
===================================================================
RCS file: /cvs/drupal/drupal/includes/menu.inc,v
retrieving revision 1.235
diff -u -p -r1.235 menu.inc
--- includes/menu.inc	26 Dec 2007 19:02:23 -0000	1.235
+++ includes/menu.inc	27 Dec 2007 03:29:23 -0000
@@ -622,7 +622,9 @@ function _menu_link_translate(&$item) {
  *
  * menu_get_object() will provide you the current node on paths like node/5,
  * node/5/revisions/48 etc. menu_get_object('user') will give you the user
- * account on user/5 etc.
+ * account on user/5 etc. Note - this function should never be called within a
+ * _to_arg function (like user_current_to_arg()) since this may result in an
+ * infinite recursion. 
  *
  * @param $type
  *   Type of the object. These appear in hook_menu definitons as %type. Core
@@ -1492,8 +1494,11 @@ function menu_get_active_title() {
 }
 
 /**
- * Get a menu link by its mlid, access checked and link translated for
- * rendering.
+ * Get a menu link by its mlid, access checked and link translated for rendering.
+ *
+ * This function should never be called from within node_load() or any other
+ * function used as a menu object load function since an infinite recursion may
+ * occur.
  *
  * @param $mlid
  *   The mlid of the menu item.
