Update Http.php
authorClaus-Justus Heine <himself@claus-justus-heine.de>
Tue, 15 Feb 2022 17:37:16 +0000 (18:37 +0100)
committerGitHub <noreply@github.com>
Tue, 15 Feb 2022 17:37:16 +0000 (18:37 +0100)
src/Helper/Http.php

index fa03d5a..3c65ffa 100644 (file)
@@ -183,7 +183,7 @@ class Http
                         foreach ($cookie as $pos => $val) {
                             $val = explode('=', $val, 2);
                             $tag = trim($val[0]);
-                            $val = isset($val[1] ? trim($val[1]) : '';
+                            $val = isset($val[1]) ? trim($val[1]) : '';
                             /// @todo with version 1 cookies, we should strip leading and trailing " chars
                             if ($pos == 0) {
                                 $cookiename = $tag;