BUGFIX: fixing bug in FileAgeCheck when checking multiple files

This commit is contained in:
Julian Seidenberg 2012-12-17 17:26:59 +13:00 committed by Ingo Schommer
parent fecf0979a9
commit b32e243c99

View File

@ -88,7 +88,8 @@ class FileAgeCheck implements EnvironmentCheck {
if($this->checkType == self::CHECK_SINGLE && count($invalidFiles) < count($files)) { if($this->checkType == self::CHECK_SINGLE && count($invalidFiles) < count($files)) {
return array(EnvironmentCheck::OK, ''); return array(EnvironmentCheck::OK, '');
} else { } else {
return array( if (count($invalidFiles) == 0) return array(EnvironmentCheck::OK, '');
else return array(
EnvironmentCheck::ERROR, EnvironmentCheck::ERROR,
sprintf('No files matched criteria (%s %s)', $this->compareOperand, date('c', $cutoffTime)) sprintf('No files matched criteria (%s %s)', $this->compareOperand, date('c', $cutoffTime))
); );