From dfb4eefaf8a63902a69197743d9e8941f50e72c4 Mon Sep 17 00:00:00 2001 From: phpnut Date: Thu, 1 Feb 2007 06:39:25 +0000 Subject: [PATCH] Adding fix for #2001 git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4384 3807eeeb-6ff5-0310-8944-8be069107fe0 --- cake/basics.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cake/basics.php b/cake/basics.php index 47c0b12f3..73c7adf96 100644 --- a/cake/basics.php +++ b/cake/basics.php @@ -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