1
0
Fork 0
forked from blallo/rss-bridge

Fix for crashes when accessing FileCache in case it has been purged/not created yet.

This commit is contained in:
teromene 2018-05-05 18:05:48 +01:00
parent 9b34b68180
commit 3ca59392c2

View file

@ -8,7 +8,9 @@ class FileCache implements CacheInterface {
protected $param; protected $param;
public function loadData(){ public function loadData(){
return unserialize(file_get_contents($this->getCacheFile())); if(file_exists($this->getCacheFile())) {
return unserialize(file_get_contents($this->getCacheFile()));
}
} }
public function saveData($datas){ public function saveData($datas){