diff options
author | Dries Buytaert <dries@buytaert.net> | 2006-01-20 09:37:00 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2006-01-20 09:37:00 +0000 |
commit | 0ff0c4beaaf0ae49e8b9b7afeda83a26d8d59666 (patch) | |
tree | d9d11833265a2890666463ac739a3ab4d936c4a9 /modules | |
parent | 4da1540a9fc8d535d2ce9f99431e23eb2dcc9d8d (diff) | |
download | brdo-0ff0c4beaaf0ae49e8b9b7afeda83a26d8d59666.tar.gz brdo-0ff0c4beaaf0ae49e8b9b7afeda83a26d8d59666.tar.bz2 |
- Patch #42137 by Richard: deleting non existent user blocks the whole drupal site.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/user.module | 2 | ||||
-rw-r--r-- | modules/user/user.module | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/user.module b/modules/user.module index aefa1aea5..d23deda98 100644 --- a/modules/user.module +++ b/modules/user.module @@ -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); } diff --git a/modules/user/user.module b/modules/user/user.module index aefa1aea5..d23deda98 100644 --- a/modules/user/user.module +++ b/modules/user/user.module @@ -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); } |