diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-12-02 20:18:23 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-12-02 20:18:23 +0000 |
commit | d12aaddbb720dc7351b0f3b7d42a60569490e449 (patch) | |
tree | 3cf89bd679b2b59a9127b64b92a199a84518f83a /includes/menu.inc | |
parent | 44aefb0a4e7e7794fc74f0fe48b10fae1b546699 (diff) | |
download | brdo-d12aaddbb720dc7351b0f3b7d42a60569490e449.tar.gz brdo-d12aaddbb720dc7351b0f3b7d42a60569490e449.tar.bz2 |
#979958 follow-up by carlos8f: Small tweaks to previous fix.
Diffstat (limited to 'includes/menu.inc')
-rw-r--r-- | includes/menu.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/menu.inc b/includes/menu.inc index 0b8f59436..1488dc8cd 100644 --- a/includes/menu.inc +++ b/includes/menu.inc @@ -3526,9 +3526,9 @@ function _menu_router_build($callbacks) { if (!is_array($function)) { // ... check the parent for a loader at the same position // using the same function name and defining arguments... - if (isset($parent['_load_functions'][$k]) && is_array($parent['_load_functions'][$k]) && key($parent['_load_functions'][$k]) == $function) { + if (isset($parent['_load_functions'][$k]) && is_array($parent['_load_functions'][$k]) && key($parent['_load_functions'][$k]) === $function) { // ... and inherit the arguments on the child. - $item['_load_functions'][$k] = array($function => reset($parent['_load_functions'][$k])); + $item['_load_functions'][$k] = $parent['_load_functions'][$k]; } } } |