From ba725407cd3e7ee83961e355252841153493face Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Mon, 1 Nov 2021 11:19:53 +0100 Subject: [PATCH] Make PHP status in SystemCheckPage resilient against method reordering --- wcfsetup/install/files/lib/acp/page/SystemCheckPage.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/acp/page/SystemCheckPage.class.php b/wcfsetup/install/files/lib/acp/page/SystemCheckPage.class.php index 5fe9bb41c9..1a090c9846 100644 --- a/wcfsetup/install/files/lib/acp/page/SystemCheckPage.class.php +++ b/wcfsetup/install/files/lib/acp/page/SystemCheckPage.class.php @@ -313,7 +313,7 @@ class SystemCheckPage extends AbstractPage $this->results['php']['sha256'] = \in_array('sha256', \hash_algos()); } - $this->results['status']['php'] = empty($this->results['php']['extension']) && $this->results['php']['sha256']; + $this->results['status']['php'] = $this->results['status']['php'] && empty($this->results['php']['extension']) && $this->results['php']['sha256']; } protected function validatePhpMemoryLimit() -- 2.20.1