#2492 - Added latest precheck fix

This commit is contained in:
RayEhrhardt 2014-05-02 08:46:51 +00:00
parent c6b4c5622e
commit 493a23e889

View File

@ -820,7 +820,7 @@ class requRemote
{ {
public $blUseRemote = true; public $blUseRemote = true;
public $oModuleData; public $oModuleData = array();
/** /**
* @param $sModId * @param $sModId
@ -897,28 +897,30 @@ class requRemote
/** /**
* @param $sUrl * @param $sUrl
* *
* @return string * @return stdClass
*/ */
protected function _getRemoteServerData($sUrl) protected function _getRemoteServerData($sUrl)
{ {
if ($this->oModuleData) { if (isset($this->oModuleData[$sUrl])) {
return $this->oModuleData; return $this->oModuleData[$sUrl];
} }
if ($this->blUseRemote) { $oFailureData = new stdClass();
$sUrl = '/serialized/' . $sUrl; $oFailureData->status = 'NOK';
$sHost = "http://update.oxidmodule.com"; if (false === $this->blUseRemote) {
$sData = $this->curlConnect($sHost . $sUrl); return $oFailureData;
$oData = unserialize($sData);
$this->oModuleData = $oData;
} else {
$oData = new stdClass();
$oData->status = 'NOK';
} }
$sHost = "http://update.oxidmodule.com";
$sData = $this->curlConnect($sHost . '/serialized/' . $sUrl);
$oData = unserialize($sData);
return $oData; if (false == $oData) {
return $oFailureData;
}
$this->oModuleData[$sUrl] = $oData;
return $this->oModuleData[$sUrl];
} }
/** /**