Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
d0940351
Commit
d0940351
authored
Dec 27, 2007
by
Gábor Hojtsy
Browse files
#204081
by chx: check menu arguments by type, so type casting will not cause problems
parent
a8e1fb43
Changes
1
Hide whitespace changes
Inline
Side-by-side
includes/menu.inc
View file @
d0940351
...
...
@@ -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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment