- Patch #43818 by Derek: make user/0 result in a 404.
parent
7c941aa5dc
commit
adb88830d8
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue