remote job submission: typo in create_batch() RPC

This commit is contained in:
David Anderson 2013-11-26 21:18:46 -08:00
parent dd76a873d0
commit c292f04120
1 changed files with 1 additions and 1 deletions

View File

@ -240,7 +240,7 @@ function submit_batch($r) {
} else { } else {
$batch_name = (string)($r->batch->batch_name); $batch_name = (string)($r->batch->batch_name);
$batch_id = BoincBatch::insert( $batch_id = BoincBatch::insert(
"(user_id, create_time, njobs, name, app_id, logical_end_time, state) values ($user->id, $now, $njobs, '$batch_name', $app->id, $let, ".BATCH_STATE_IN_INIT.")" "(user_id, create_time, njobs, name, app_id, logical_end_time, state) values ($user->id, $now, $njobs, '$batch_name', $app->id, $let, ".BATCH_STATE_INIT.")"
); );
if (!$batch_id) { if (!$batch_id) {
xml_error(-1, "BOINC server: Can't create batch: ".BoincDb::error()); xml_error(-1, "BOINC server: Can't create batch: ".BoincDb::error());