Commit 0ff0c4be authored by Dries's avatar Dries

- Patch #42137 by Richard: deleting non existent user blocks the whole drupal site.

parent 4da1540a
......@@ -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);
}
......
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment