BUGFIX: fixing bug in FileAgeCheck when checking multiple files
This commit is contained in:
parent
fecf0979a9
commit
b32e243c99
|
@ -88,7 +88,8 @@ class FileAgeCheck implements EnvironmentCheck {
|
|||
if($this->checkType == self::CHECK_SINGLE && count($invalidFiles) < count($files)) {
|
||||
return array(EnvironmentCheck::OK, '');
|
||||
} else {
|
||||
return array(
|
||||
if (count($invalidFiles) == 0) return array(EnvironmentCheck::OK, '');
|
||||
else return array(
|
||||
EnvironmentCheck::ERROR,
|
||||
sprintf('No files matched criteria (%s %s)', $this->compareOperand, date('c', $cutoffTime))
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue