PHP error

when I save settings I get "Undefined variable: '$name' in /var/www/html/settings.php on line 26" message
I think that the correct variable name shall be $key
This commit is contained in:
J.K.Umeboshi 2023-02-16 12:35:04 +01:00 committed by GitHub
parent 689d31025e
commit 4271c9f635
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@
if (!empty($value))
{
setcookie($key, $value, time() + (86400 * 90), '/');
$_COOKIE[$name] = $value;
$_COOKIE[$key] = $value;
}
}
}