web RPCs: fix typo. From Jaime

This commit is contained in:
David Anderson 2014-03-20 13:09:38 -07:00
parent 6f29a50812
commit 3aa4e32ed2
1 changed files with 2 additions and 2 deletions

View File

@ -100,7 +100,7 @@ function get_wu_output_file($wu_name, $file_num, $auth_str) {
$wu = BoincWorkunit::lookup("name='$wu_name'");
if (!$wu) die("no workunit $wu_name");
$batch = BoincBatch::lookup_id($wu->batch);
if (!batch) die("no batch $wu->batch");
if (!$batch) die("no batch $wu->batch");
$user = BoincUser::lookup_id($batch->user_id);
if (!$user) die("no user $batch->user_id");
if ($user->authenticator != $auth_str) die("bad auth str: x=$x, auth_str=$auth_str");
@ -123,7 +123,7 @@ function get_wu_output_files($wu_id, $auth_str) {
$wu = BoincWorkunit::lookup_id($wu_id);
if (!$wu) die("no workunit $wu_id");
$batch = BoincBatch::lookup_id($wu->batch);
if (!batch) die("no batch $wu->batch");
if (!$batch) die("no batch $wu->batch");
$user = BoincUser::lookup_id($batch->user_id);
if (!$user) die("no user $batch->user_id");
$x = md5($user->authenticator.$wu_id);