summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2006-04-27 05:43:31 +0000
committerDries Buytaert <dries@buytaert.net>2006-04-27 05:43:31 +0000
commitadb88830d85f70fad79d0868b9ba9e537b00dc4a (patch)
treecc9b04f4f556cde54562ebc1440edb65cc2e8cae
parent7c941aa5dcd624c4529d3d837e5f4646b1820f28 (diff)
downloadbrdo-adb88830d85f70fad79d0868b9ba9e537b00dc4a.tar.gz
brdo-adb88830d85f70fad79d0868b9ba9e537b00dc4a.tar.bz2
- Patch #43818 by Derek: make user/0 result in a 404.
-rw-r--r--modules/user.module2
-rw-r--r--modules/user/user.module2
2 files changed, 2 insertions, 2 deletions
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) {
diff --git a/modules/user/user.module b/modules/user/user.module
index a997a5807..294a02296 100644
--- a/modules/user/user.module
+++ b/modules/user/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) {