mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-06-26 03:30:48 +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)) {
|
||||
$sName=md5(SYS_CACHE_PREFIX.$sName);
|
||||
if ($this->sCacheType==SYS_CACHE_TYPE_FILE) {
|
||||
return unserialize($this->oBackendCache->load($sName));
|
||||
$data=$this->oBackendCache->load($sName);
|
||||
if ($this->sCacheType==SYS_CACHE_TYPE_FILE and $data!==false) {
|
||||
return unserialize($data);
|
||||
} else {
|
||||
return $this->oBackendCache->load($sName);
|
||||
return $data;
|
||||
}
|
||||
} else {
|
||||
return $this->multiGet($sName);
|
||||
|
|
Loading…
Reference in a new issue