]> git.mxchange.org Git - friendica.git/commitdiff
Use standard boolean operator
authorMatthew Exon <git.mexon@spamgourmet.com>
Wed, 3 Jul 2024 06:03:33 +0000 (08:03 +0200)
committerMatthew Exon <git.mexon@spamgourmet.com>
Wed, 3 Jul 2024 06:03:33 +0000 (08:03 +0200)
src/Network/HTTPClient/Response/CurlResult.php

index 79aa9c722f6d382a49c396e1284b109eebcbd069..2680a8b8066368a92141729e7c2aed2cfc868211 100644 (file)
@@ -230,7 +230,7 @@ class CurlResult implements ICanHandleHttpResponses
 
                        $this->redirectUrl = (string)Uri::fromParts((array)$redirect_parts);
                        $this->isRedirectUrl = true;
-                       $this->redirectIsPermanent = $this->returnCode == 301 or $this->returnCode == 308;
+                       $this->redirectIsPermanent = $this->returnCode == 301 || $this->returnCode == 308;
                } else {
                        $this->isRedirectUrl = false;
                        $this->redirectIsPermanent = false;