10.3.00 bug test variable

This commit is contained in:
Fred Tempez 2020-09-12 09:05:57 +02:00
parent 9c5642b9b0
commit a1c2a86d5a

View File

@ -468,7 +468,8 @@ class user extends common {
*/
public function logout() {
// Ne pas effacer l'identifiant mais seulement le mot de passe
if ($_COOKIE['ZWII_USER_LONGTIME'] !== 'true' ) {
if (array_key_exists('ZWII_USER_LONGTIME',$_COOKIE)
AND $_COOKIE['ZWII_USER_LONGTIME'] !== 'true' ) {
helper::deleteCookie('ZWII_USER_ID');
helper::deleteCookie('ZWII_USER_LONGTIME');
}