From dc931746767ad166fb2439487da906390a6d00f6 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Sat, 27 Jul 2013 19:44:47 +0200 Subject: [PATCH] Handling undocumented return value of a boolean false --- wcfsetup/install/files/lib/acp/page/IndexPage.class.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); + } } } -- 2.20.1