mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-09-06 01:31:22 +02:00
Merge pull request #8268 from dhensby/pulls/3.7.1/fix-installer-error
FIX sizeof doesnt work with null types
This commit is contained in:
commit
259a0a50ad
@ -1232,11 +1232,11 @@ class InstallRequirements {
|
||||
}
|
||||
|
||||
public function hasErrors() {
|
||||
return sizeof($this->errors);
|
||||
return empty($this->errors) ? 0 : sizeof($this->errors);
|
||||
}
|
||||
|
||||
public function hasWarnings() {
|
||||
return sizeof($this->warnings);
|
||||
return empty($this->warnings) ? 0 : sizeof($this->warnings);
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user