X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Flibs%2FCookie.php;h=b7636b147678e0453732fb41a7e7cdb655d3bff8;hb=1f5c0bb8ec4d2f2ce4c04618da94e3f7f9dd47a6;hp=c0ab0a05380e7e61b4fe8aa09b219c18141fb426;hpb=56d45558b102349f3480a46819669407aa3be2d6;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/libs/Cookie.php b/includes/libs/Cookie.php index c0ab0a0538..b7636b1476 100644 --- a/includes/libs/Cookie.php +++ b/includes/libs/Cookie.php @@ -58,11 +58,7 @@ class Cookie { $this->expires = strtotime( $attr['expires'] ); } - if ( isset( $attr['path'] ) ) { - $this->path = $attr['path']; - } else { - $this->path = '/'; - } + $this->path = $attr['path'] ?? '/'; if ( isset( $attr['domain'] ) ) { if ( self::validateCookieDomain( $attr['domain'] ) ) {