mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-07-01 05:55:02 +03:00
fix файлового кеша, могла возникать ошибка: Notice: unserialize() [function.unserialize]: Argument is not a string in ....
This commit is contained in:
parent
cc03b77f2e
commit
dc098c0c8a
|
@ -103,10 +103,11 @@ class LsCache extends Module {
|
||||||
*/
|
*/
|
||||||
if (!is_array($sName)) {
|
if (!is_array($sName)) {
|
||||||
$sName=md5(SYS_CACHE_PREFIX.$sName);
|
$sName=md5(SYS_CACHE_PREFIX.$sName);
|
||||||
if ($this->sCacheType==SYS_CACHE_TYPE_FILE) {
|
$data=$this->oBackendCache->load($sName);
|
||||||
return unserialize($this->oBackendCache->load($sName));
|
if ($this->sCacheType==SYS_CACHE_TYPE_FILE and $data!==false) {
|
||||||
|
return unserialize($data);
|
||||||
} else {
|
} else {
|
||||||
return $this->oBackendCache->load($sName);
|
return $data;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
return $this->multiGet($sName);
|
return $this->multiGet($sName);
|
||||||
|
|
Loading…
Reference in a new issue