From: skodak Date: Tue, 25 Sep 2007 09:37:58 +0000 (+0000) Subject: MDL-11434 $CFG->filelifetime = 0 has no effect; patch by Chris Fryer X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=f44762bd6f84b3cb39ff66d1f8a06b5022907bf4;p=moodle.git MDL-11434 $CFG->filelifetime = 0 has no effect; patch by Chris Fryer --- diff --git a/file.php b/file.php index d047f9d96c..80ad8f8109 100644 --- a/file.php +++ b/file.php @@ -14,7 +14,7 @@ require_once('config.php'); require_once('lib/filelib.php'); - if (empty($CFG->filelifetime)) { + if (!isset($CFG->filelifetime)) { $lifetime = 86400; // Seconds for files to remain in caches } else { $lifetime = $CFG->filelifetime;