1
0
Fork 0
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:
Mzhelskiy Maxim 2009-05-25 06:59:19 +00:00
parent cc03b77f2e
commit dc098c0c8a

View file

@ -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);