Commit adb88830 authored by Dries's avatar Dries

- Patch #43818 by Derek: make user/0 result in a 404.

parent 7c941aa5
......@@ -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) {
......
......@@ -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) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment