--- projects/cms/source/reports/php/historical/browser.php 2001/03/02 09:13:09 1.14 +++ projects/cms/source/reports/php/historical/browser.php 2001/03/02 09:25:05 1.15 @@ -3,9 +3,13 @@ // Navigation for the i-scream reports. // pjm2@ukc.ac.uk +# CONSTANTS +$minFileSize = 33; + + function isReportEmpty($filename) { - if (filesize($filename) < 33) { + if (filesize($filename) < minFileSize) { return TRUE; } return FALSE; @@ -144,7 +148,7 @@ function getdirArray($dir='./',$sort='asort') { The report could not be found.

"; + echo "

The report could not be found. Somebody must have deleted it!

"; } echo "
"; }