mirror of
				https://github.com/Mibew/java.git
				synced 2025-10-31 18:41:09 +03:00 
			
		
		
		
	When enabled the groups, visitors cannot start a chat, if only operators, who don't relate to any groups, online.
This commit is contained in:
		
							parent
							
								
									13554a8e43
								
							
						
					
					
						commit
						450e970ed8
					
				| @ -185,7 +185,12 @@ function has_online_operators($groupid = "") | ||||
| 		$query .= ", ${mysqlprefix}chatgroupoperator where groupid = $groupid and ${mysqlprefix}chatoperator.operatorid = " . | ||||
| 				  "${mysqlprefix}chatgroupoperator.operatorid and istatus = 0"; | ||||
| 	} else { | ||||
| 		$query .= " where istatus = 0"; | ||||
| 		if ($settings['enablegroups'] == 1) { | ||||
| 			$query .= ", ${mysqlprefix}chatgroupoperator where ${mysqlprefix}chatoperator.operatorid = " . | ||||
| 				"${mysqlprefix}chatgroupoperator.operatorid and istatus = 0"; | ||||
| 		} else { | ||||
| 			$query .= " where istatus = 0"; | ||||
| 		} | ||||
| 	} | ||||
| 	$row = select_one_row($query, $link); | ||||
| 	close_connection($link); | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user