Skip to content

Commit

Permalink
MDL-11434 $CFG->filelifetime = 0 has no effect; patch by Chris Fryer
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed Sep 25, 2007
1 parent 52cb2e4 commit f44762b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion file.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f44762b

Please sign in to comment.