Commit f0879544 authored by bgm's avatar bgm

installer: PHP 7.2 compatibility fixes

parent 7a88e045
......@@ -1400,14 +1400,14 @@ class InstallRequirements {
* @return int
*/
public function hasErrors() {
return count($this->errors);
return !empty($this->errors);
}
/**
* @return int
*/
public function hasWarnings() {
return count($this->warnings);
return !empty($this->warnings);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment