#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';
if (false === $this->blUseRemote) {
return $oFailureData;
}
$sHost = "http://update.oxidmodule.com"; $sHost = "http://update.oxidmodule.com";
$sData = $this->curlConnect($sHost . $sUrl); $sData = $this->curlConnect($sHost . '/serialized/' . $sUrl);
$oData = unserialize($sData); $oData = unserialize($sData);
$this->oModuleData = $oData; if (false == $oData) {
} else { return $oFailureData;
$oData = new stdClass();
$oData->status = 'NOK';
} }
$this->oModuleData[$sUrl] = $oData;
return $oData; return $this->oModuleData[$sUrl];
} }
/** /**