Fix typos

This commit is contained in:
Rytis Slatkevičius 2014-07-15 12:21:17 +03:00
parent bff75f6f00
commit ac1b78b1fe
1 changed files with 4 additions and 3 deletions

View File

@ -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");