Revert "Make PHP status in SystemCheckPage resilient against method reordering"
authorTim Düsterhus <duesterhus@woltlab.com>
Mon, 1 Nov 2021 13:32:52 +0000 (14:32 +0100)
committerTim Düsterhus <duesterhus@woltlab.com>
Mon, 1 Nov 2021 13:32:52 +0000 (14:32 +0100)
This change was buggy and it's not worth the effort to do this cleanly.

This reverts commit ba725407cd3e7ee83961e355252841153493face.

wcfsetup/install/files/lib/acp/page/SystemCheckPage.class.php

index f6fb694528e875eaeb6f13e87917f3321c5cf9e5..7542f9d363766ccfb1e0842bcf1dc0d1ef220a32 100644 (file)
@@ -318,7 +318,7 @@ class SystemCheckPage extends AbstractPage
             $this->results['php']['sha256'] = \in_array('sha256', \hash_algos());
         }
 
-        $this->results['status']['php'] = $this->results['status']['php'] && empty($this->results['php']['extension']) && $this->results['php']['sha256'];
+        $this->results['status']['php'] = empty($this->results['php']['extension']) && $this->results['php']['sha256'];
     }
 
     protected function validatePhpMemoryLimit()