Fix warning in Context class if lang_type cookie is not set

This commit is contained in:
Kijin Sung 2021-01-28 22:52:28 +09:00
parent ebe28cd884
commit cc318479b4

View file

@ -301,7 +301,7 @@ class Context
$set_lang_cookie = true;
}
}
elseif($_COOKIE['lang_type'])
elseif(isset($_COOKIE['lang_type']) && $_COOKIE['lang_type'])
{
$lang_type = $_COOKIE['lang_type'];
}