Better checks for existing files

This commit is contained in:
moodler 2005-02-10 09:15:20 +00:00
parent 73cffa5416
commit 730967f2e7
2 changed files with 10 additions and 6 deletions

View file

@ -32,9 +32,11 @@
/// Work out the last modified date for this theme
foreach ($THEME->sheets as $sheet) {
$sheetmodified = filemtime($sheet.'.css');
if ($sheetmodified > $lastmodified) {
$lastmodified = $sheetmodified;
if (file_exists($sheet.'.css')) {
$sheetmodified = @filemtime($sheet.'.css');
if ($sheetmodified > $lastmodified) {
$lastmodified = $sheetmodified;
}
}
}