Browse Source
			
			
			fix: Move definition of $details so also IDEs see this never happens
			
				Signed-off-by: Joas Schilling <coding@schilljs.com>
			
			
				pull/13037/head
			
			
		 
		
			
				
					
						 Joas Schilling
					
					1 year ago
						Joas Schilling
					
					1 year ago
					
				 
				
			 
		 
		
			
				
				  
				  No known key found for this signature in database
				  
				  	
						GPG Key ID: 74434EFE0D2E2205
				  	
				  
				
			
		
		
		
	
		
			
				 1 changed files with 
1 additions and 
1 deletions
			 
			
		 
		
			
				- 
					
					
					 
					lib/Service/RoomService.php
				
					
					
						
							
								
									
										
											
	
		
			
				
					|  |  | @ -894,12 +894,12 @@ class RoomService { | 
			
		
	
		
			
				
					|  |  |  | 			return false; | 
			
		
	
		
			
				
					|  |  |  | 		} | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  | 		$details = []; | 
			
		
	
		
			
				
					|  |  |  | 		if ($room->getActiveSince() instanceof \DateTime) { | 
			
		
	
		
			
				
					|  |  |  | 			// Call is already active, just someone upgrading the call flags
 | 
			
		
	
		
			
				
					|  |  |  | 			$event = new BeforeRoomModifiedEvent($room, ARoomModifiedEvent::PROPERTY_IN_CALL, $callFlag, $oldCallFlag, $participant); | 
			
		
	
		
			
				
					|  |  |  | 			$this->dispatcher->dispatchTyped($event); | 
			
		
	
		
			
				
					|  |  |  | 		} else { | 
			
		
	
		
			
				
					|  |  |  | 			$details = []; | 
			
		
	
		
			
				
					|  |  |  | 			if ($silent) { | 
			
		
	
		
			
				
					|  |  |  | 				$details[AParticipantModifiedEvent::DETAIL_IN_CALL_SILENT] = true; | 
			
		
	
		
			
				
					|  |  |  | 			} | 
			
		
	
	
		
			
				
					|  |  | 
 |