mirror of
https://github.com/silverstripe/silverstripe-environmentcheck
synced 2024-10-22 17:05:40 +02:00
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)) {
|
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))
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user