diff options
author | Gábor Hojtsy <gabor@hojtsy.hu> | 2007-12-27 12:23:59 +0000 |
---|---|---|
committer | Gábor Hojtsy <gabor@hojtsy.hu> | 2007-12-27 12:23:59 +0000 |
commit | d0940351af0d7d7938f996ad9dda8ed76b131319 (patch) | |
tree | cfd04fea1c61161bbff293bced3efb78f56e4953 /includes | |
parent | a8e1fb435119c56d800092ddeefe3e81f1d8dd17 (diff) | |
download | brdo-d0940351af0d7d7938f996ad9dda8ed76b131319.tar.gz brdo-d0940351af0d7d7938f996ad9dda8ed76b131319.tar.bz2 |
#204081 by chx: check menu arguments by type, so type casting will not cause problems
Diffstat (limited to 'includes')
-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 b94d1ee4e..d302ae5f3 100644 --- a/includes/menu.inc +++ b/includes/menu.inc @@ -380,12 +380,12 @@ function _menu_load_objects(&$item, &$map) { // Some arguments are placeholders for dynamic items to process. foreach ($args as $i => $arg) { - if ($arg == '%index') { + if ($arg === '%index') { // Pass on argument index to the load function, so multiple // occurances of the same placeholder can be identified. $args[$i] = $index; } - if ($arg == '%map') { + if ($arg === '%map') { // Pass on menu map by reference. The accepting function must // also declare this as a reference if it wants to modify // the map. |