mirror of
https://github.com/Mibew/i18n.git
synced 2025-01-22 21:40:28 +03:00
Fix notice about undefined index 'visitorid' in client.php
This commit is contained in:
parent
c7182e840d
commit
48d0159a92
@ -105,10 +105,13 @@ if( !isset($_GET['token']) || !isset($_GET['thread']) ) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Get invitation info
|
// Get invitation info
|
||||||
$invitation_state = invitation_state($_SESSION['visitorid']);
|
if (Settings::get('enabletracking')) {
|
||||||
$visitor_is_invited = Settings::get('enabletracking')
|
$invitation_state = invitation_state($_SESSION['visitorid']);
|
||||||
&& $invitation_state['invited']
|
$visitor_is_invited = $invitation_state['invited']
|
||||||
&& !$invitation_state['threadid'];
|
&& !$invitation_state['threadid'];
|
||||||
|
} else {
|
||||||
|
$visitor_is_invited = false;
|
||||||
|
}
|
||||||
|
|
||||||
// Check if survey should be displayed
|
// Check if survey should be displayed
|
||||||
if(Settings::get('enablepresurvey') == '1' && !$visitor_is_invited) {
|
if(Settings::get('enablepresurvey') == '1' && !$visitor_is_invited) {
|
||||||
|
Loading…
Reference in New Issue
Block a user