mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-07-04 08:45:21 +02:00
Fix for crashes when accessing FileCache in case it has been purged/not created yet.
This commit is contained in:
@ -8,7 +8,9 @@ class FileCache implements CacheInterface {
|
||||
protected $param;
|
||||
|
||||
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){
|
||||
|
Reference in New Issue
Block a user