aboutsummaryrefslogtreecommitdiff
path: root/lib/http-conditional.php
diff options
context:
space:
mode:
authorGravatar Luc SANCHEZ <4697568+ColonelMoutarde@users.noreply.github.com> 2023-07-07 21:53:17 +0200
committerGravatar GitHub <noreply@github.com> 2023-07-07 21:53:17 +0200
commit7f9594b8c7d7799f2e5f89328bd5981410db8cf0 (patch)
tree67614f8f3d04e94139d19dad3dd438f3bd949368 /lib/http-conditional.php
parent1db606bc1b6cf25d9b9c4bef362acdb964ce1e8a (diff)
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 <alexandre@alapetite.fr> * Update cli/i18n/I18nUsageValidator.php Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr> * Fix several regressions and other minor things * Fix another regression * Update lib/http-conditional.php Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr> --------- Co-authored-by: Luc <sanchezluc+freshrss@gmail.com> Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
Diffstat (limited to 'lib/http-conditional.php')
-rw-r--r--lib/http-conditional.php2
1 files changed, 1 insertions, 1 deletions
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;