Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
0ff0c4be
Commit
0ff0c4be
authored
Jan 20, 2006
by
Dries Buytaert
Browse files
- Patch
#42137
by Richard: deleting non existent user blocks the whole drupal site.
parent
4da1540a
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/user.module
View file @
0ff0c4be
...
...
@@ -734,7 +734,7 @@ function user_menu($may_cache) {
//Your personal page
if
(
$user
->
uid
)
{
$items
[]
=
array
(
'path'
=>
'user/'
.
$user
->
uid
,
'title'
=>
t
(
'my account'
),
'callback'
=>
'user_view'
,
'callback arguments'
=>
arg
(
1
),
'access'
=>
TRUE
,
'callback'
=>
'user_view'
,
'callback arguments'
=>
array
(
arg
(
1
)
)
,
'access'
=>
TRUE
,
'type'
=>
MENU_DYNAMIC_ITEM
);
}
...
...
modules/user/user.module
View file @
0ff0c4be
...
...
@@ -734,7 +734,7 @@ function user_menu($may_cache) {
//Your personal page
if
(
$user
->
uid
)
{
$items
[]
=
array
(
'path'
=>
'user/'
.
$user
->
uid
,
'title'
=>
t
(
'my account'
),
'callback'
=>
'user_view'
,
'callback arguments'
=>
arg
(
1
),
'access'
=>
TRUE
,
'callback'
=>
'user_view'
,
'callback arguments'
=>
array
(
arg
(
1
)
)
,
'access'
=>
TRUE
,
'type'
=>
MENU_DYNAMIC_ITEM
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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