- a group not found fails the query
This commit is contained in:
		
							parent
							
								
									0c44163bdf
								
							
						
					
					
						commit
						eff038a7ea
					
				@ -507,6 +507,8 @@ function get_results_by_gameid(ReqHandler &$rh, array $params): array
 | 
				
			|||||||
//            if (count($group_filter) > 0) {
 | 
					//            if (count($group_filter) > 0) {
 | 
				
			||||||
//                $group_filter = ["AND", $group_filter];
 | 
					//                $group_filter = ["AND", $group_filter];
 | 
				
			||||||
//            }
 | 
					//            }
 | 
				
			||||||
 | 
					        } else { // a group not found means a faulty query
 | 
				
			||||||
 | 
					            return [];
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        $game_results = $testMgr->getResultsByGameId($gameid, $filter, $ordering, true, $group_filter);
 | 
					        $game_results = $testMgr->getResultsByGameId($gameid, $filter, $ordering, true, $group_filter);
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user