mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Adding fix for #2001
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4384 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
d1baa9db8f
commit
dfb4eefaf8
1 changed files with 4 additions and 1 deletions
|
@ -1050,7 +1050,10 @@
|
|||
}
|
||||
|
||||
$timediff = $expires - $now;
|
||||
$filetime = @filemtime($filename);
|
||||
$filetime = false;
|
||||
if(file_exists($filename)) {
|
||||
$filetime = @filemtime($filename);
|
||||
}
|
||||
|
||||
if ($data === null) {
|
||||
// Read data from file
|
||||
|
|
Loading…
Reference in a new issue