#204081 by chx: check menu arguments by type, so type casting will not cause problems

6.x
Gábor Hojtsy 2007-12-27 12:23:59 +00:00
parent a8e1fb4351
commit d0940351af
1 changed files with 2 additions and 2 deletions

View File

@ -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.