Merge branch 'MDL-39664' of git://github.com/nebgor/moodle

This commit is contained in:
Damyon Wiese 2013-05-14 15:25:46 +08:00
commit 5a378479a0

View File

@ -1112,7 +1112,7 @@ class worker extends singleton_pattern {
$this->log('Curl Error.');
return false;
} else if (is_array($this->curlinfo) && (empty($this->curlinfo['http_code']) or ($this->curlinfo['http_code'] != 200))) {
} else if (is_array($this->curlinfo) and (empty($this->curlinfo['http_code']) or ($this->curlinfo['http_code'] != 200))) {
$this->log('Curl remote error.');
$this->log(print_r($this->curlinfo,true));
return false;