From 7f9594b8c7d7799f2e5f89328bd5981410db8cf0 Mon Sep 17 00:00:00 2001 From: Luc SANCHEZ <4697568+ColonelMoutarde@users.noreply.github.com> Date: Fri, 7 Jul 2023 21:53:17 +0200 Subject: fix many "Only booleans are allowed in an if condition" (#5501) * fix many "Only booleans are allowed in an if condition" * Update cli/create-user.php Co-authored-by: Alexandre Alapetite * Update cli/i18n/I18nUsageValidator.php Co-authored-by: Alexandre Alapetite * Fix several regressions and other minor things * Fix another regression * Update lib/http-conditional.php Co-authored-by: Alexandre Alapetite --------- Co-authored-by: Luc Co-authored-by: Alexandre Alapetite --- lib/http-conditional.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/http-conditional.php') diff --git a/lib/http-conditional.php b/lib/http-conditional.php index 1a1b6a6dc..21382b735 100644 --- a/lib/http-conditional.php +++ b/lib/http-conditional.php @@ -182,7 +182,7 @@ function httpConditional(int $UnixTimeStamp, int $cacheSeconds = 0, int $cachePr * Reference rfc2616-sec14.html#sec14.11 */ function _httpConditionalCallBack(string $buffer, int $mode = 5): string { - if (extension_loaded('zlib') && (!ini_get('zlib.output_compression'))) { + if (extension_loaded('zlib') && (ini_get('zlib.output_compression') == false)) { $buffer2 = ob_gzhandler($buffer, $mode) ?: ''; //Will check HTTP_ACCEPT_ENCODING and put correct headers such as Vary //rfc2616-sec14.html#sec14.44 if (strlen($buffer2) > 1) //When ob_gzhandler succeeded $buffer = $buffer2; -- cgit v1.2.3