diff options
-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 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) { |