diff --git a/dev/install/install.php5 b/dev/install/install.php5 index 2ae0689f9..2d8b172ce 100755 --- a/dev/install/install.php5 +++ b/dev/install/install.php5 @@ -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); } }