mirror of
				https://github.com/Mibew/i18n.git
				synced 2025-11-01 01:36:57 +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
 | ||||
| 		$invitation_state = invitation_state($_SESSION['visitorid']); | ||||
| 		$visitor_is_invited = Settings::get('enabletracking') | ||||
| 			&& $invitation_state['invited'] | ||||
| 			&& !$invitation_state['threadid']; | ||||
| 		if (Settings::get('enabletracking')) { | ||||
| 			$invitation_state = invitation_state($_SESSION['visitorid']); | ||||
| 			$visitor_is_invited = $invitation_state['invited'] | ||||
| 				&& !$invitation_state['threadid']; | ||||
| 		} else { | ||||
| 			$visitor_is_invited = false; | ||||
| 		} | ||||
| 
 | ||||
| 		// Check if survey should be displayed
 | ||||
| 		if(Settings::get('enablepresurvey') == '1' && !$visitor_is_invited) { | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user