From 0ff0c4beaaf0ae49e8b9b7afeda83a26d8d59666 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Fri, 20 Jan 2006 09:37:00 +0000 Subject: - Patch #42137 by Richard: deleting non existent user blocks the whole drupal site. --- modules/user/user.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/user/user.module') 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); } -- cgit v1.2.3