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

4.7.x
Dries Buytaert 2006-01-20 09:37:00 +00:00
parent 4da1540a9f
commit 0ff0c4beaa
2 changed files with 2 additions and 2 deletions

View File

@ -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);
}

View File

@ -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);
}