From adb88830d85f70fad79d0868b9ba9e537b00dc4a Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Thu, 27 Apr 2006 05:43:31 +0000 Subject: - Patch #43818 by Derek: make user/0 result in a 404. --- modules/user.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/user.module') diff --git a/modules/user.module b/modules/user.module index a997a5807..294a02296 100644 --- a/modules/user.module +++ b/modules/user.module @@ -776,7 +776,7 @@ function user_menu($may_cache) { 'weight' => 10); } else { - if (arg(0) == 'user' && is_numeric(arg(1))) { + if (arg(0) == 'user' && is_numeric(arg(1)) && arg(1) > 0) { $account = user_load(array('uid' => arg(1))); if ($user !== FALSE) { -- cgit v1.2.3