From: Alexander Ebert Date: Sat, 27 Jul 2013 17:44:47 +0000 (+0200) Subject: Handling undocumented return value of a boolean false X-Git-Tag: 2.0.0_Beta_6~31^2~1 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=dc931746767ad166fb2439487da906390a6d00f6;p=GitHub%2FWoltLab%2FWCF.git Handling undocumented return value of a boolean false --- diff --git a/wcfsetup/install/files/lib/acp/page/IndexPage.class.php b/wcfsetup/install/files/lib/acp/page/IndexPage.class.php index 0c279ad7e6..8dfed1ae75 100755 --- a/wcfsetup/install/files/lib/acp/page/IndexPage.class.php +++ b/wcfsetup/install/files/lib/acp/page/IndexPage.class.php @@ -43,7 +43,9 @@ class IndexPage extends AbstractPage { // get load if (function_exists('sys_getloadavg')) { $load = sys_getloadavg(); - $this->server['load'] = implode(', ', $load); + if (is_array($load) && count($load) == 3) { + $this->server['load'] = implode(', ', $load); + } } }