fix an undefined index

This commit is contained in:
Ian 2015-08-19 12:56:20 +02:00
parent 042f1a9b15
commit 45ac8f7dbd

View file

@ -68,6 +68,7 @@ class serendipity_event_multilingual extends serendipity_event
}
if (!defined('IN_serendipity_admin')) {
$resetlang = false;
// GET is either a forced session or a single entry lang and we normally do not use it with cookies set, since they have preference
if (serendipity_db_bool($this->get_config('langswitch')) && (!isset($_POST['user_language']) || !isset($_COOKIE['serendipityLanguage']))) {
// check for REQUESTs being sent (imagine the user in a DE blog links an EN entry version and force option is set TRUE)