X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=src%2FHelper%2FHttp.php;h=3c65ffa70075e1e2d71358d5c075f396434d017c;hb=4ad42c6c911dfb00eb72496effc24dfddc8cb10a;hp=d12f4563894585c2963c2e32bcf8be33ca789e16;hpb=a743b3f76cd66215e16b008c235e9d3db9bce503;p=plcapi.git diff --git a/src/Helper/Http.php b/src/Helper/Http.php index d12f4563..3c65ffa7 100644 --- a/src/Helper/Http.php +++ b/src/Helper/Http.php @@ -183,7 +183,7 @@ class Http foreach ($cookie as $pos => $val) { $val = explode('=', $val, 2); $tag = trim($val[0]); - $val = 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;