diff --git a/modules/user.module b/modules/user.module index a997a580798..294a0229616 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 a997a580798..294a0229616 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) {