mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 02:31:40 +09:00
Fix deprecation error in PHP 8.x when path or domain is null in setcookie()
This commit is contained in:
parent
22abeb7a88
commit
180ed429cf
4 changed files with 6 additions and 6 deletions
|
|
@ -1261,7 +1261,7 @@ class Session
|
|||
* @param string $domain (optional)
|
||||
* @return bool
|
||||
*/
|
||||
protected static function _unsetCookie($name, $path = null, $domain = null)
|
||||
protected static function _unsetCookie($name, $path = '', $domain = '')
|
||||
{
|
||||
$result = setcookie($name, 'deleted', time() - (86400 * 366), $path, $domain, false, false);
|
||||
if ($result)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue