mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-25 09:23:08 +03:00
Improve the validation check
This commit is contained in:
parent
80435bd522
commit
e7a757e124
1 changed files with 1 additions and 1 deletions
|
@ -274,7 +274,7 @@ class CI_Cache_file extends CI_Driver {
|
||||||
|
|
||||||
$data = unserialize(file_get_contents($this->_cache_path.$id));
|
$data = unserialize(file_get_contents($this->_cache_path.$id));
|
||||||
|
|
||||||
if ($data['ttl'] > 0 && time() > $data['time'] + $data['ttl'])
|
if ($data && $data['ttl'] > 0 && time() > $data['time'] + $data['ttl'])
|
||||||
{
|
{
|
||||||
file_exists($this->_cache_path.$id) && unlink($this->_cache_path.$id);
|
file_exists($this->_cache_path.$id) && unlink($this->_cache_path.$id);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
Loading…
Reference in a new issue