- web: don't error out on old-style notice URL

svn path=/trunk/boinc/; revision=23506
This commit is contained in:
David Anderson 2011-05-05 14:56:32 +00:00
parent 0bafa188b0
commit bffeeb0851
3 changed files with 10 additions and 2 deletions

View File

@ -2792,3 +2792,11 @@ David 5 May 2011
html/inc/
util.inc
David 5 May 2011
- web: don't error out on old-style notice URL
sched/
validator.cpp
html/user/
friend.php

View File

@ -121,7 +121,7 @@ function handle_add_confirm($user) {
//
function handle_query($user) {
$target_userid = get_int('target_userid', true);
if ($target_userid != $user->id) {
if ($target_user && $target_userid != $user->id) {
$target_user = BoincUser::lookup_id($target_userid);
page_head(tra("Please log in as %1", $target_user->name));
echo tra("You must log in as %1 to view this friend request",

View File

@ -646,7 +646,7 @@ int main(int argc, char** argv) {
int i, retval;
const char *usage =
"\nUsage: %s -app <app-name> [OPTIONS]\n"
"\nUsage: %s --app <app-name> [OPTIONS]\n"
"Start validator for application <app-name>\n\n"
"Optional arguments:\n"
" --one_pass_N_WU N Validate at most N WUs, then exit\n"