mirror of https://github.com/BOINC/boinc.git
Fix typos
This commit is contained in:
parent
bff75f6f00
commit
ac1b78b1fe
|
@ -39,10 +39,11 @@ function req_to_xml($req, $op) {
|
|||
<app_name>$req->app_name</app_name>
|
||||
<batch_name>$req->batch_name</batch_name>
|
||||
";
|
||||
if ($req->result_template_file) {
|
||||
if ((isset($req->result_template_file)) && ($req->result_template_file)) {
|
||||
$x .= " <result_template_file>$req->result_template_file</result_template_file>
|
||||
";
|
||||
if ($req->workunit_template_file) {
|
||||
}
|
||||
if ((isset($req->workunit_template_file)) && ($req->workunit_template_file)) {
|
||||
$x .= " <workunit_template_file>$req->workunit_template_file</workunit_template_file>
|
||||
";
|
||||
}
|
||||
|
@ -165,7 +166,7 @@ function boinc_estimate_batch($req) {
|
|||
$name = $reply->getName();
|
||||
if ($name == 'estimate') {
|
||||
return array((string)$reply->seconds, null);
|
||||
} else if ($name = 'error') {
|
||||
} else if ($name == 'error') {
|
||||
return array(null, (string)$reply->message);
|
||||
} else {
|
||||
return array(null, "Bad reply message");
|
||||
|
|
Loading…
Reference in New Issue